From 6f100d87a69ee6f97315d9c2e20a0eb418753b5d Mon Sep 17 00:00:00 2001 From: Marc Andre Tanner Date: Sat, 10 Oct 2009 19:50:14 +0200 Subject: [PATCH] Split optimization flags from headers and library paths Introduce $CFLAGS_HEADERS and $LDFLAGS_LIBS which hold the necessary paths for -I and -L compiler options. So that they can be used independently of the optimization flags. Signed-off-by: Marc Andre Tanner --- sources/include.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sources/include.sh b/sources/include.sh index 9ff02f3..a2f5d95 100755 --- a/sources/include.sh +++ b/sources/include.sh @@ -24,8 +24,10 @@ export STAGING_DIR="${TOP}/staging-dir" # This is taken care of by a gcc wrapper script which passes things # like -nostdinc -nostdlibs -nodefaultlibs to gcc. -CFLAGS="-I$STAGING_DIR/usr/include -Os -pipe -march=armv4t -mtune=arm9tdmi" -LDFLAGS="-L$STAGING_DIR/usr/lib" +CFLAGS_HEADERS="-I$STAGING_DIR/usr/include" +CFLAGS="$CFLAGS_HEADERS -Os -pipe -march=armv4t -mtune=arm9tdmi" +LDFLAGS_LIBS="-L$STAGING_DIR/usr/lib" +LDFLAGS="$LDFLAGS_LIBS" # Make sure that pkg-config uses the right paths and doesn't pull # in depencies from the host system. -- 2.11.4.GIT