summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/portable_build.sh11
-rwxr-xr-xscripts/portable_extraplugs.sh18
2 files changed, 19 insertions, 10 deletions
diff --git a/scripts/portable_build.sh b/scripts/portable_build.sh
index 45218e31..f3fcbbf0 100755
--- a/scripts/portable_build.sh
+++ b/scripts/portable_build.sh
@@ -12,16 +12,7 @@ sed -i 's/-lstdc++ -lm -lgcc_s -lc -lgcc_s/-lm -lc/g' libtool
make clean
make -j9
-ZLIB_LIBS="$ORIGIN/lib-x86-32/libz.a"
-CFLAGS="-I$ORIGIN/lib-x86-32/include"
-
-for i in shn dumb ao ; do
- echo cd
- cd $ORIGIN/plugins/$i
- make clean
- echo making $ORIGIN/plugins/$i
- make -j8 STATIC_CFLAGS="$CFLAGS" CC=$CC CXX=$CXX ZLIB_LIBS=$ZLIB_LIBS
-done
+./scrips/portable_extraplugs.sh
cd $ORIGIN
diff --git a/scripts/portable_extraplugs.sh b/scripts/portable_extraplugs.sh
new file mode 100755
index 00000000..5d922aad
--- /dev/null
+++ b/scripts/portable_extraplugs.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print'`
+ORIGIN=`pwd | perl -ne 'chomp and print'`
+export APBUILD_STATIC_LIBGCC=1
+export CC=$ORIGIN/tools/apbuild/apgcc
+export CXX=$ORIGIN/tools/apbuild/apgcc
+
+ZLIB_LIBS="$ORIGIN/lib-x86-32/libz.a"
+CFLAGS="-I$ORIGIN/lib-x86-32/include"
+
+for i in shn dumb ao ; do
+ echo cd
+ cd $ORIGIN/plugins/$i
+ make clean
+ echo making $ORIGIN/plugins/$i
+ make -j8 STATIC_CFLAGS="$CFLAGS" CC=$CC CXX=$CXX ZLIB_LIBS=$ZLIB_LIBS
+done
+