summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-03-18 22:24:27 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-03-18 22:24:27 +0100
commit4fdf935d2221eb659827fe9714a19d956ecff253 (patch)
treedfc03a03a9fad1dc073f23bf705d444d723d7e48
parentdf1b19f3436b80956f8510dea4a320532fa546a6 (diff)
Build system: Configure libffi --with-pic.
darcs-hash:c2f671fcefdca9314491244cea4351741308a90f
-rw-r--r--Objective-C/GNUmakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Objective-C/GNUmakefile b/Objective-C/GNUmakefile
index 76a06c1..db8f601 100644
--- a/Objective-C/GNUmakefile
+++ b/Objective-C/GNUmakefile
@@ -46,6 +46,8 @@ ifdef USE_LIBFFI
ADDITIONAL_OBJCFLAGS += -DUSE_LIBFFI
ifneq ($(HAVE_ANY_FFI_H),1)
ADDITIONAL_LDFLAGS += ../libffi-3.0.4/.libs/libffi.a
+# We might want to consider linking with libffi.so instead because of
+# -fPIC issues.
LIBRARIES_DEPEND_UPON += ../libffi-3.0.4/.libs/libffi.a
ADDITIONAL_OBJCFLAGS += -I../libffi-3.0.4/include
FFI_DEPS += ../libffi-3.0.4/.libs/libffi.a
@@ -86,7 +88,7 @@ obj/%.o: %.m
endif
../libffi-3.0.4/.libs/libffi.a:
- (cd ../libffi-3.0.4 && chmod +x ltconfig install-sh && sh ./configure && make)
+ (cd ../libffi-3.0.4 && chmod +x ltconfig install-sh && sh ./configure --with-pic && make)
libffi_clean:
-make -C ../libffi-3.0.4 distclean