X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fmacosxbuild.sh;h=963e62ba8cb374b28d342a31d6674f1429fedf62;hb=b9587d3cf718632225eae5e2fc4fbeb267ad3339;hp=d03be84fd70c341c5f966b5536476e8c151f0acc;hpb=2c43cbfff01496919316f600ee76112be551392d;p=synfig.git diff --git a/synfig-studio/trunk/macosxbuild.sh b/synfig-studio/trunk/macosxbuild.sh index d03be84..963e62b 100755 --- a/synfig-studio/trunk/macosxbuild.sh +++ b/synfig-studio/trunk/macosxbuild.sh @@ -1,28 +1,33 @@ #!/bin/sh #OPTIONS="--disable-optimization --enable-debug" - +export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig +export MACOSX_DEPLOYMENT_TARGET=10.4 OPTIONS="" #OPTIONS="$OPTIONS --enable-timelimit=120" OPTIONS="$OPTIONS --enable-optimization=2" #OPTIONS="$OPTIONS --enable-optimization=3 --enable-g5opt" #OPTIONS="$OPTIONS --disable-optimization" OPTIONS="$OPTIONS --disable-debug" - +#OPTIONS="$OPTIONS --enable-debug" +#export LDFLAGS='-undefined dynamic-lookup' +LDFLAGS="-prebind -prebind_all_twolevel_modules -twolevel_namespace -bind_at_load -undefined dynamic_lookup" BUILDDIR=macosxbuild [ -e configure ] || ./bootstrap || exit 1 - [ -d $BUILDDIR ] && rm -fr $BUILDDIR +[ -d $BUILDDIR ] && rm -fr $BUILDDIR mkdir $BUILDDIR cd $BUILDDIR -../configure $OPTIONS || exit 1 +set -x + +../configure $OPTIONS LDFLAGS="$LDFLAGS" || exit 1 make -j2 -#make package +make package #make installer