From 7fef623e3be7594513776d1d3063892187fcd311 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 6 Apr 2013 12:17:47 +0200 Subject: [PATCH] tinyxml: cross build support. --- srcpkgs/tinyxml/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/tinyxml/template b/srcpkgs/tinyxml/template index 5dad39d6f9..c4e8f47643 100644 --- a/srcpkgs/tinyxml/template +++ b/srcpkgs/tinyxml/template @@ -18,8 +18,8 @@ do_build() { -e '/^TINYXML_USE_STL/ s|=.*|=YES|' \ -e "s|^RELEASE_CFLAGS.*|& ${CXXFLAGS} -fPIC|" Makefile - make ${makejobs} - g++ -fPIC ${CXXFLAGS} -shared -o lib${sourcepkg}.so.0.${version} \ + make CXX="$CXX" CC="$CC" LD="$CXX" ${makejobs} + ${CXX} -fPIC ${CXXFLAGS} -shared -o lib${sourcepkg}.so.0.${version} \ -Wl,-soname,lib${sourcepkg}.so.0 $(ls *.o | grep -v xmltest) }