summaryrefslogtreecommitdiff
path: root/scripts/build/libc
diff options
context:
space:
mode:
authorLawrence D'Anna <larry@elder-gods.org>2015-03-11 10:08:57 (GMT)
committerLawrence D'Anna <larry@elder-gods.org>2015-04-08 03:31:58 (GMT)
commit972dbd294d96e530a8997578abfeb8c98daf44fb (patch)
tree8b0253d74c8660de99def6fb0b8d6f0ac5ac9a8b /scripts/build/libc
parent18175b8d93ca1807236eced0a3389e9b46ecca53 (diff)
bugfix: pass extra build CFLAGS and LDFLAGS to glibc
Glibc actually does create a build executable. It's under sunrpc and it's called cross-rpcgen. It uses gettext, so if that's not available in a standard place on your system (for example if you're using Mac OS X and Homebrew), then you are all out of luck. Signed-off-by: Lawrence D'Anna <larry@elder-gods.org>
Diffstat (limited to 'scripts/build/libc')
-rw-r--r--scripts/build/libc/glibc.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh
index 50adf95..672e672 100644
--- a/scripts/build/libc/glibc.sh
+++ b/scripts/build/libc/glibc.sh
@@ -371,6 +371,10 @@ do_libc_backend_once() {
;;
esac
+ CT_CFLAGS_FOR_BUILD+=" ${CT_EXTRA_CFLAGS_FOR_BUILD}"
+ CT_LDFLAGS_FOR_BUILD+=" ${CT_EXTRA_LDFLAGS_FOR_BUILD}"
+ extra_make_args+=( "BUILD_CFLAGS=${CT_CFLAGS_FOR_BUILD}" "BUILD_LDFLAGS=${CT_LDFLAGS_FOR_BUILD}" )
+
if [ "${libc_headers}" = "y" ]; then
CT_DoLog EXTRA "Installing C library headers"