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
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" \