[packages] more gcc 4.6 compilation fixes

git-svn-id: svn://svn.openwrt.org/openwrt/packages@30548 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
cshore 2012-02-15 09:34:08 +00:00
parent ad4ae62bf0
commit 3f88ab94a9
3 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ define Build/Compile
CXXFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CXXFLAGS) -fno-builtin -fno-rtti -nostdinc++ \
-I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \
LDFLAGS="$(TARGET_LDFLAGS)" \
LIBS="-nodefaultlibs -lc -luClibc++ -lconfuse" \
LIBS="-nodefaultlibs -lc -luClibc++ -lconfuse $(LIBGCC_S)" \
ndppd
endef

View File

@ -86,7 +86,7 @@ CONFIGURE_VARS += \
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
LDFLAGS="$$$$LDFLAGS" \
LIBS="-nodefaultlibs -lc -luClibc++ -lm $(LIBGCC_S)" \
CLIENTCLIBS="-nodefaultlibs -luClibc++ -lm $(LIBGCC_S)" \
CLIENTCLIBS="-nodefaultlibs -lc -luClibc++ -lm $(LIBGCC_S)" \
libnl1_LIBS="-libnl-tiny"
define Build/Compile

View File

@ -48,8 +48,8 @@ $(STAMP_BUILT)-$(2): $(STAMP_PREPARED)
$(MAKE) -C $(PKG_BUILD_DIR) \
CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \
LDFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -lc $(4) -luClibc++ -lm -lutil" \
LDFLAGSNOSSL="$(TARGET_LDFLAGS) -nodefaultlibs $(4) -luClibc++ -lm -lutil" \
LDFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -lc $(4) -luClibc++ -lm -lutil $(LIBGCC_S)" \
LDFLAGSNOSSL="$(TARGET_LDFLAGS) -nodefaultlibs -lc $(4) -luClibc++ -lm -lutil $(LIBGCC_S)" \
$(3)
( cd $(PKG_BUILD_DIR); mv -f rrs rrs-$(2); )
touch $$@