projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4335582
)
Use -w when compiling libffi, to stop -Werror failures
author
Ian Lynagh
<igloo@earth.li>
Tue, 2 Jun 2009 11:34:08 +0000
(11:34 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Tue, 2 Jun 2009 11:34:08 +0000
(11:34 +0000)
libffi/ghc.mk
patch
|
blob
|
history
diff --git
a/libffi/ghc.mk
b/libffi/ghc.mk
index
4613447
..
3f101df
100644
(file)
--- 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
# 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) \
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) \
"$(SHELL)" configure \
--enable-static=yes \
--enable-shared=$(libffi_EnableShared) \