diff options
author | Lawrence D'Anna <larry@elder-gods.org> | 2015-03-11 03:08:57 -0700 |
---|---|---|
committer | Lawrence D'Anna <larry@elder-gods.org> | 2015-04-07 20:31:58 -0700 |
commit | 972dbd294d96e530a8997578abfeb8c98daf44fb (patch) | |
tree | 8b0253d74c8660de99def6fb0b8d6f0ac5ac9a8b | |
parent | 18175b8d93ca1807236eced0a3389e9b46ecca53 (diff) | |
download | crosstool-ng-972dbd294d96e530a8997578abfeb8c98daf44fb.tar.gz crosstool-ng-972dbd294d96e530a8997578abfeb8c98daf44fb.tar.bz2 crosstool-ng-972dbd294d96e530a8997578abfeb8c98daf44fb.zip |
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>
-rw-r--r-- | scripts/build/libc/glibc.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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" |