diff options
| author | Valerii Hiora <[email protected]> | 2014-10-07 14:33:53 +0300 |
|---|---|---|
| committer | Valerii Hiora <[email protected]> | 2014-10-07 15:21:17 +0300 |
| commit | 9dd8ce9270afa8c110f44b42d87b133620b1ec30 (patch) | |
| tree | 61a63011ead6a70ab17e3a9b5705534593a4361f /Makefile | |
| parent | Merge pull request #60 from vhbit/cert-gen-cleanup (diff) | |
| download | rust-openssl-9dd8ce9270afa8c110f44b42d87b133620b1ec30.tar.xz rust-openssl-9dd8ce9270afa8c110f44b42d87b133620b1ec30.zip | |
Potential fix for #68
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |