aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorValerii Hiora <[email protected]>2014-10-07 14:33:53 +0300
committerValerii Hiora <[email protected]>2014-10-07 15:21:17 +0300
commit9dd8ce9270afa8c110f44b42d87b133620b1ec30 (patch)
tree61a63011ead6a70ab17e3a9b5705534593a4361f /Makefile
parentMerge pull request #60 from vhbit/cert-gen-cleanup (diff)
downloadrust-openssl-9dd8ce9270afa8c110f44b42d87b133620b1ec30.tar.xz
rust-openssl-9dd8ce9270afa8c110f44b42d87b133620b1ec30.zip
Potential fix for #68
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c88ebeae..5e496b3a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,9 @@
+ifneq ($(findstring i686,$(TARGET)),)
+ CFLAGS += -m32
+else
+ CFLAGS += -m64
+endif
+
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)
+ $(CC) $(CFLAGS) -c native/bn_is_zero.c -o $(OUT_DIR)/bn_is_zero.o
+ $(AR) crus $(OUT_DIR)/libwrapped.a $(OUT_DIR)/bn_is_zero.o