Changeset 26540


Ignore:
Timestamp:
2011-04-09T14:58:10+02:00 (7 years ago)
Author:
hauke
Message:

mysql: fix a compile error on some host systems.

conf_to_src.c uses C++ functions so we should use g++ for compiling.
The CFLAGS, CPPFLAGS and LDFLAGS for host build should be used and not the for target builds.

This closes #8342

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/mysql/Makefile

    r25182 r26540  
    121121                install 
    122122        $(MAKE) $(PKG_JOBS) -C "$(PKG_BUILD_DIR)/libmysql" \ 
    123                 CC="$(HOSTCC)" \ 
    124                 LINK="$(HOSTCC) -o conf_to_src -lc" \ 
    125                 CFLAGS="" \ 
    126                 CPPFLAGS="" \ 
     123                CC="g++" \ 
     124                CFLAGS="$(HOST_CFLAGS)" \ 
     125                CPPFLAGS="$(HOST_CFLAGS)" \ 
     126                LDFLAGS="$(HOST_LDFLAGS)" \ 
    127127                conf_to_src 
    128128        $(MAKE) $(PKG_JOBS) -C "$(PKG_BUILD_DIR)" \ 
Note: See TracChangeset for help on using the changeset viewer.