summaryrefslogtreecommitdiffstats
path: root/package/Makefile.in
diff options
context:
space:
mode:
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)" \