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:
46d2e10
)
Pass CFLAGS and LDFLAGS to libffi's configure
author
Ian Lynagh
<igloo@earth.li>
Thu, 21 May 2009 16:02:10 +0000
(16:02 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Thu, 21 May 2009 16:02:10 +0000
(16:02 +0000)
libffi/ghc.mk
patch
|
blob
|
history
diff --git
a/libffi/ghc.mk
b/libffi/ghc.mk
index
187e9eb
..
0394d1d
100644
(file)
--- a/
libffi/ghc.mk
+++ b/
libffi/ghc.mk
@@
-119,10
+119,13
@@
$(libffi_STAMP_CONFIGURE):
PATH=`pwd`:$$PATH; \
export PATH; \
cd build && \
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) \
--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
# libffi.so needs to be built with the correct soname.
# NOTE: this builds libffi_convience.so with the incorrect