Changeset 40724


Ignore:
Timestamp:
2014-05-08T02:57:42+02:00 (4 years ago)
Author:
florian
Message:

seeks: fix compile on platforms with VFP

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 :/

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 <dirkneukirchen@…>
Signed-off-by: Florian Fainelli <florian@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/seeks/Makefile

    r40165 r40724  
    5151 
    5252CONFIGURE_VARS:= \ 
    53          CXXFLAGS="-I$(STAGING_DIR)/usr/include $(ICONV_CFLAGS)" \ 
     53         CXXFLAGS="-I$(STAGING_DIR)/usr/include $(ICONV_CFLAGS) $(TARGET_CFLAGS)" \ 
    5454         LDFLAGS="-L$(STAGING_DIR)/usr/lib      $(ICONV_LDFLAGS)" \ 
    5555 
     
    7070define Build/Compile 
    7171        $(MAKE) -C $(PKG_BUILD_DIR) \ 
    72                 CXXFLAGS="-I$(STAGING_DIR)/usr/include $(ICONV_CFLAGS)" 
     72                CXXFLAGS="-I$(STAGING_DIR)/usr/include $(ICONV_CFLAGS) $(TARGET_CFLAGS)" 
    7373        $(MAKE) -C $(PKG_BUILD_DIR) \ 
    7474                DESTDIR="$(PKG_INSTALL_DIR)" \ 
Note: See TracChangeset for help on using the changeset viewer.