aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan Reem <[email protected]>2014-10-04 18:18:02 -0700
committerJonathan Reem <[email protected]>2014-10-04 18:18:02 -0700
commitc22b3c5063da942954b0b71b03317bf2da058c7e (patch)
tree9c0399824b008846677b022a1b88b5a1df85bc40 /Makefile
parentMerge pull request #61 from alexcrichton/memcmp (diff)
downloadrust-openssl-c22b3c5063da942954b0b71b03317bf2da058c7e.tar.xz
rust-openssl-c22b3c5063da942954b0b71b03317bf2da058c7e.zip
Add a dummy bn_is_zero C dependency to wrap BN_is_zero
This is necessary because on some architectures BN_is_zero is a CPP macro, so trying to link against it in an `extern "C"` block causes a linker error. This also introduces a build command to Cargo to compile the bn_is_zero wrapper.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..c88ebeae
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+default:
+ rm -f $(OUT_DIR)/bin_is_zero.o
+ $(CC) -O -shared native/bn_is_zero.c -o bn_is_zero.o
+ mv bn_is_zero.o $(OUT_DIR)