summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/portable_build.sh5
-rwxr-xr-xscripts/portable_extraplugs.sh7
2 files changed, 7 insertions, 5 deletions
diff --git a/scripts/portable_build.sh b/scripts/portable_build.sh
index fc6c5a5f..36f2665e 100755
--- a/scripts/portable_build.sh
+++ b/scripts/portable_build.sh
@@ -1,11 +1,12 @@
#!/bin/sh
VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print'`
ORIGIN=`pwd | perl -ne 'chomp and print'`
+AP=$HOME/bin/autopackage
+export CC=$AP/apbuild/apgcc
+export CXX=$AP/apbuild/apgcc
export APBUILD_STATIC_LIBGCC=1
./autogen.sh
-export CC=$ORIGIN/tools/apbuild/apgcc
-export CXX=$ORIGIN/tools/apbuild/apgcc
./configure --enable-staticlink --enable-portable --disable-artwork-imlib2
sed -i 's/-lstdc++ -lm -lgcc_s -lc -lgcc_s/-lm -lc/g' libtool
diff --git a/scripts/portable_extraplugs.sh b/scripts/portable_extraplugs.sh
index 5d922aad..2c6868a6 100755
--- a/scripts/portable_extraplugs.sh
+++ b/scripts/portable_extraplugs.sh
@@ -1,11 +1,12 @@
#!/bin/sh
VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print'`
ORIGIN=`pwd | perl -ne 'chomp and print'`
+AP=$HOME/bin/autopackage
+export CC=$AP/apbuild/apgcc
+export CXX=$AP/apbuild/apgcc
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"
+ZLIB_LIBS="$ORIGIN/lib-x86-32/lib/libz.a"
CFLAGS="-I$ORIGIN/lib-x86-32/include"
for i in shn dumb ao ; do