From 5e589420a7d90965f48f47b29e80ac28c5c6e97f Mon Sep 17 00:00:00 2001 From: hauke Date: Sat, 9 Apr 2011 12:58:10 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.openwrt.org/openwrt/packages@26540 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- libs/mysql/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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" \ -- 2.11.0