From: Hauke Mehrtens Date: Sat, 9 Apr 2011 12:58:10 +0000 (+0000) Subject: mysql: fix a compile error on some host systems. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8363334c32f0a71779f53062e9bc55260b21f6ae;p=openwrt%2Fsvn-archive%2Fpackages.git 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 SVN-Revision: 26540 --- diff --git a/libs/mysql/Makefile b/libs/mysql/Makefile index dba90cbad..3dcae75e8 100644 --- a/libs/mysql/Makefile +++ b/libs/mysql/Makefile @@ -120,10 +120,10 @@ define Build/Compile DESTDIR="$(PKG_INSTALL_DIR)" \ install $(MAKE) $(PKG_JOBS) -C "$(PKG_BUILD_DIR)/libmysql" \ - CC="$(HOSTCC)" \ - LINK="$(HOSTCC) -o conf_to_src -lc" \ - CFLAGS="" \ - CPPFLAGS="" \ + CC="g++" \ + CFLAGS="$(HOST_CFLAGS)" \ + CPPFLAGS="$(HOST_CFLAGS)" \ + LDFLAGS="$(HOST_LDFLAGS)" \ conf_to_src $(MAKE) $(PKG_JOBS) -C "$(PKG_BUILD_DIR)" \ SUBDIRS="libmysql" \