diff options
author | Ian Lynagh <igloo@earth.li> | 2009-06-02 11:34:08 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-06-02 11:34:08 +0000 |
commit | 22c42ec32752ea67b5071df32fd9997a3f4d7346 (patch) | |
tree | 40d3fb01d2fbeb18a31e187dd3d14c1d6182e109 /libffi | |
parent | 433558226790dfa88d215cf12a39df44a3ed01fd (diff) | |
download | haskell-22c42ec32752ea67b5071df32fd9997a3f4d7346.tar.gz |
Use -w when compiling libffi, to stop -Werror failures
Diffstat (limited to 'libffi')
-rw-r--r-- | libffi/ghc.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libffi/ghc.mk b/libffi/ghc.mk index 4613447d4c..3f101dffed 100644 --- a/libffi/ghc.mk +++ b/libffi/ghc.mk @@ -114,14 +114,16 @@ $(libffi_STAMP_CONFIGURE): # This patch is just the resulting delta from running automake, autoreconf, libtoolize --force --copy cd libffi && "$(PATCH)" -p0 < libffi.autotools-update.patch +# Because -Werror may be in SRC_CC_OPTS/SRC_LD_OPTS, we need to turn +# warnings off or the compilation of libffi might fail due to warnings cd libffi && \ (set -o igncr 2>/dev/null) && set -o igncr; export SHELLOPTS; \ PATH=`pwd`:$$PATH; \ export PATH; \ cd build && \ CC=$(WhatGccIsCalled) \ - CFLAGS="$(SRC_CC_OPTS)" \ - LDFLAGS="$(SRC_LD_OPTS)" \ + CFLAGS="$(SRC_CC_OPTS) -w" \ + LDFLAGS="$(SRC_LD_OPTS) -w" \ "$(SHELL)" configure \ --enable-static=yes \ --enable-shared=$(libffi_EnableShared) \ |