2014-05-05 11:55 GMT-07:00 Dirk Neukirchen <dirkneukirc...@web.de>: > This solution might be a little bit dirty - is adding those -mfloat-abi > switches to CXXFLAGS in rules.mk cleaner ? > but they are overwritten in this case so dunno :/
I think this is an okay to fix this, in general how a given set of CFLAGS gets used by the package makefile is highly dependant on how we pass it from the OpenWrt Makefile recipe. Ideally, we could fix the toolchain to tell it what's the default ABI to use when compiling objects. > > reported by buildbot on sunxi > > configure fails to detect C++ compiler: > a.out uses VFP register arguments, /tmp/ccHPrqts.o does not > fixed by first change > > other errors when linking: > ld: error: .libs/libseeksutils.so.0.0.0 uses VFP register arguments, > .libs/miscutil.o does not > ld: error: .libs/libseeksutils.so.0.0.0 uses VFP register arguments, > .libs/mem_utils.o does not > ld: error: .libs/libseeksutils.so.0.0.0 uses VFP register arguments, > .libs/mutexes.o does not > fixed by second change > > Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de> > --- > net/seeks/Makefile | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/net/seeks/Makefile b/net/seeks/Makefile > index 7974e56..49fd8e6 100644 > --- a/net/seeks/Makefile > +++ b/net/seeks/Makefile > @@ -50,7 +50,7 @@ endef > > > CONFIGURE_VARS:= \ > - CXXFLAGS="-I$(STAGING_DIR)/usr/include $(ICONV_CFLAGS)" \ > + CXXFLAGS="-I$(STAGING_DIR)/usr/include $(ICONV_CFLAGS) > $(TARGET_CFLAGS)" \ > LDFLAGS="-L$(STAGING_DIR)/usr/lib $(ICONV_LDFLAGS)" \ > > CONFIGURE_ARGS += \ > @@ -69,7 +69,7 @@ endef > > define Build/Compile > $(MAKE) -C $(PKG_BUILD_DIR) \ > - CXXFLAGS="-I$(STAGING_DIR)/usr/include $(ICONV_CFLAGS)" > + CXXFLAGS="-I$(STAGING_DIR)/usr/include $(ICONV_CFLAGS) > $(TARGET_CFLAGS)" > $(MAKE) -C $(PKG_BUILD_DIR) \ > DESTDIR="$(PKG_INSTALL_DIR)" \ > install > -- > 2.0.0.rc0 > > > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel > -- Florian _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel