#!/bin/bash if [ -d cascade-make ] ; then source cascade-make/lib/cascade-lib.bash GEXTIMAGEMAGICK . $* fi if [ -z $GEXTIMAGEMAGICK ] ; then source setup.bash fi # for darwin, want to be backwards compatible upto and incl Mountain Lion # to avoid "Illegal Instruction 4" errors when running imgmagick convert # on older Mac if [ "x$GSDLOS" = "xdarwin" ] ; then export CFLAGS="-mmacosx-version-min=10.8 $CFLAGS" export CXXFLAGS="-mmacosx-version-min=10.8 $CXXFLAGS" export LDFLAGS="-mmacosx-version-min=10.8 $LDFLAGS" fi