From 4fdf935d2221eb659827fe9714a19d956ecff253 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Tue, 18 Mar 2008 22:24:27 +0100 Subject: Build system: Configure libffi --with-pic. darcs-hash:c2f671fcefdca9314491244cea4351741308a90f --- Objective-C/GNUmakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Objective-C') 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 -- cgit v1.2.3