X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=libffi%2Fghc.mk;h=0394d1d38921e98690a2637dc770160117b63c83;hb=97a8fe8780307e95829034117efa98d2e27109cd;hp=187e9eb0016687089f6f8b1f4930b4420d9847bc;hpb=1d6393ea16a0f47090619d61cb81d4947cb7010b;p=ghc-hetmet.git diff --git a/libffi/ghc.mk b/libffi/ghc.mk index 187e9eb0..0394d1d 100644 --- a/libffi/ghc.mk +++ b/libffi/ghc.mk @@ -119,10 +119,13 @@ $(libffi_STAMP_CONFIGURE): PATH=`pwd`:$$PATH; \ export PATH; \ cd build && \ - CC=$(WhatGccIsCalled) $(SHELL) configure \ - --enable-static=yes \ + CC=$(WhatGccIsCalled) \ + CFLAGS="$(SRC_CC_OPTS)" \ + LDFLAGS="$(SRC_LD_OPTS)" \ + $(SHELL) configure \ + --enable-static=yes \ --enable-shared=$(libffi_EnableShared) \ - --host=$(PLATFORM) --build=$(PLATFORM) + --host=$(PLATFORM) --build=$(PLATFORM) # libffi.so needs to be built with the correct soname. # NOTE: this builds libffi_convience.so with the incorrect