From 972dbd294d96e530a8997578abfeb8c98daf44fb Mon Sep 17 00:00:00 2001 From: Lawrence D'Anna Date: Wed, 11 Mar 2015 03:08:57 -0700 Subject: 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 --- scripts/build/libc/glibc.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/build/libc') diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index 50adf958..672e6725 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" -- cgit v1.2.3