summaryrefslogtreecommitdiff
path: root/libffi/ghc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'libffi/ghc.mk')
-rw-r--r--libffi/ghc.mk15
1 files changed, 2 insertions, 13 deletions
diff --git a/libffi/ghc.mk b/libffi/ghc.mk
index f6e99c2e58..22ce6389bc 100644
--- a/libffi/ghc.mk
+++ b/libffi/ghc.mk
@@ -11,25 +11,13 @@
# -----------------------------------------------------------------------------
-ifeq "$(BuildSharedLibs)" "YES"
-libffi_STAMP_CONFIGURE = libffi/stamp.ffi.configure-shared
-libffi_STAMP_BUILD = libffi/stamp.ffi.build-shared
-libffi_STAMP_INSTALL = libffi/stamp.ffi.install-shared
-else
libffi_STAMP_CONFIGURE = libffi/stamp.ffi.configure
libffi_STAMP_BUILD = libffi/stamp.ffi.build
libffi_STAMP_INSTALL = libffi/stamp.ffi.install
-endif
libffi_STATIC_LIB = libffi/build/inst/lib/libffi.a
ffi_HEADER = rts/dist/build/ffi.h
-ifeq "$(BuildSharedLibs)" "YES"
-libffi_EnableShared=yes
-else
-libffi_EnableShared=no
-endif
-
ifneq "$(BINDIST)" "YES"
$(libffi_STAMP_CONFIGURE):
"$(RM)" $(RM_OPTS_REC) $(LIBFFI_DIR) libffi/build
@@ -55,8 +43,9 @@ $(libffi_STAMP_CONFIGURE):
LDFLAGS="$(SRC_LD_OPTS) $(CONF_GCC_LINKER_OPTS_STAGE1) -w" \
"$(SHELL)" configure \
--prefix=$(TOP)/libffi/build/inst \
+ --with-pic \
--enable-static=yes \
- --enable-shared=$(libffi_EnableShared) \
+ --enable-shared=no \
--host=$(HOSTPLATFORM) --build=$(BUILDPLATFORM)
# wc on OS X has spaces in its output, which libffi's Makefile