X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fmacosxbuild.sh;h=73400d782e80fc52fb03d108c4b765096e7e72f4;hb=d02b4a81e261e313ff3a8723b8579d48b113cbfb;hp=d03be84fd70c341c5f966b5536476e8c151f0acc;hpb=6e37c47f35ba923abea2c34a655cde9959289707;p=synfig.git diff --git a/synfig-studio/trunk/macosxbuild.sh b/synfig-studio/trunk/macosxbuild.sh index d03be84..73400d7 100755 --- a/synfig-studio/trunk/macosxbuild.sh +++ b/synfig-studio/trunk/macosxbuild.sh @@ -1,25 +1,29 @@ #!/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" - +#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