summaryrefslogtreecommitdiff
path: root/package/Makefile.in
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2007-07-06 04:26:32 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2007-07-06 04:26:32 +0000
commit9a4ca08e5ffee842d0ede78c4ce9f745f0ca42b6 (patch)
tree3f0ef80e7c44f59eae59c0fdfb9b56882d454112 /package/Makefile.in
parent9fba54740004859fd7e0936cda64d01c2b48633b (diff)
Remove usage of TARGET_LDFLAGS all together. Both TARGET_CFLAGS and TARGET_LDFLAGS are passed with the compilers and linker respectively so that we can pass CFLAGS and LDFLAGS on a per-package basis which was not possible previously and a number of packages failed to build. TARGET_CFLAGS usage in package makefiles will be removed next.
Diffstat (limited to 'package/Makefile.in')
-rw-r--r--package/Makefile.in12
1 files changed, 5 insertions, 7 deletions
diff --git a/package/Makefile.in b/package/Makefile.in
index 470c45d19..3cbf6321d 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -123,17 +123,15 @@ GNU_HOST_NAME:=$(HOST_ARCH)-$(subst ",,$(BR2_GNU_BUILD_SUFFIX))
TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
AR=$(TARGET_CROSS)ar \
AS=$(TARGET_CROSS)as \
- LD=$(TARGET_CROSS)ld \
+ LD="$(TARGET_CROSS)ld $(TARGET_LDFLAGS)" \
NM=$(TARGET_CROSS)nm \
- CC=$(TARGET_CROSS)gcc \
- GCC=$(TARGET_CROSS)gcc \
- CXX=$(TARGET_CROSS)g++ \
- CPP=$(TARGET_CROSS)cpp \
+ CC="$(TARGET_CROSS)gcc $(TARGET_CFLAGS)" \
+ GCC="$(TARGET_CROSS)gcc $(TARGET_CFLAGS)" \
+ CXX="$(TARGET_CROSS)g++ $(TARGET_CFLAGS)" \
+ CPP="$(TARGET_CROSS)cpp $(TARGET_CFLAGS)" \
RANLIB=$(TARGET_CROSS)ranlib \
STRIP=$(TARGET_CROSS)strip \
OBJCOPY=$(TARGET_CROSS)objcopy \
- CFLAGS="$(TARGET_CFLAGS)" \
- LDFLAGS="$(TARGET_LDFLAGS)" \
AR_FOR_BUILD="$(HOSTAR)" \
AS_FOR_BUILD="$(HOSTAS)" \
CC_FOR_BUILD="$(HOSTCC)" \