fix some misuses of the recently added EXTRA_{CFLAGS,CPPFLAGS,LDFLAGS} variables
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6248 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e8aeb156ae
commit
859482e47a
@ -46,9 +46,9 @@ endef
|
||||
define Build/Configure
|
||||
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
|
||||
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
|
||||
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
CPPFLAGS="$$$$CPPFLAGS $(EXTRA_CPPFLAGS)" \
|
||||
LDFLAGS="$(EXTRA_LDFLAGS)" \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
|
@ -38,7 +38,7 @@ endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/Default, \
|
||||
COPTS="\$$$$(EXTRA_CFLAGS)" \
|
||||
COPTS="$(TARGET_CFLAGS)" \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
INSTALL="install" \
|
||||
all install \
|
||||
|
@ -31,8 +31,8 @@ endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/Default, \
|
||||
CCOPTS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
|
||||
INCLUDE="" \
|
||||
CCOPTS="$(TARGET_CFLAGS)" \
|
||||
INCLUDE="$(EXTRA_CPPFLAGS)" \
|
||||
LDFLAGS="$(EXTRA_LDFLAGS)" \
|
||||
)
|
||||
endef
|
||||
|
@ -35,8 +35,8 @@ endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/Default, \
|
||||
CFLAGS="\$$$$(EXTRA_CFLAGS)" \
|
||||
LDFLAGS="\$$$$(EXTRA_LDFLAGS)" \
|
||||
CFLAGS="$(EXTRA_CFLAGS)" \
|
||||
LDFLAGS="$(EXTRA_LDFLAGS)" \
|
||||
)
|
||||
endef
|
||||
|
||||
|
@ -37,8 +37,8 @@ endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/Default, \
|
||||
CFLAGS="\$$$$(EXTRA_CFLAGS)" \
|
||||
LDFLAGS="\$$$$(EXTRA_LDFLAGS)" \
|
||||
CFLAGS="$(EXTRA_CFLAGS)" \
|
||||
LDFLAGS="$(EXTRA_LDFLAGS)" \
|
||||
)
|
||||
endef
|
||||
|
||||
|
@ -43,7 +43,7 @@ endef
|
||||
define Build/Compile
|
||||
$(call Build/Compile/Default, \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
CPPFLAGS="$(EXTRA_CFLAGS)" \
|
||||
CPPFLAGS="$(EXTRA_CPPFLAGS)" \
|
||||
LDFLAGS="$(EXTRA_LDFLAGS)" \
|
||||
)
|
||||
endef
|
||||
|
Loading…
x
Reference in New Issue
Block a user