diff options
Diffstat (limited to 'scripts/portable_build.sh')
-rwxr-xr-x | scripts/portable_build.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/portable_build.sh b/scripts/portable_build.sh new file mode 100755 index 00000000..e973993b --- /dev/null +++ b/scripts/portable_build.sh @@ -0,0 +1,17 @@ +#!/bin/sh +VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print'` +ORIGIN=`pwd | perl -ne 'chomp and print'` +export APBUILD_STATIC_LIBGCC=1 + +CC=$ORIGIN/tools/apbuild/apgcc CXX=$ORIGIN/tools/apbuild/apgcc ./configure --enable-portable --disable-pulse --disable-mpris --enable-maintainer-mode --disable-nls +sed -i 's/-lstdc++ -lm -lgcc_s -lc -lgcc_s/-lm -lc/g' libtool +make clean +make -j9 + +echo "building pluginfo tool..." +cd tools/pluginfo +make +cd ../../ + +./portable_postbuild.sh + |