Skip to content

Commit 3af916a

Browse files
committed
Allow easier switching and external setting of OSX SDK
1 parent 5148cb3 commit 3af916a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

build-devkit.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ PICASSO_VER=2.5.0
5656
GP32_TOOLS_VER=1.0.2
5757
LIBMIRKO_VER=0.9.7
5858

59+
OSXMIN=${OSXMIN:-10.5}
60+
OSXSDKPATH=${OSXSDKPATH:-/Developer/SDKs/MacOSX10.5.sdk}
61+
5962
#---------------------------------------------------------------------------------
6063
function extract_and_patch {
6164
#---------------------------------------------------------------------------------
@@ -165,8 +168,8 @@ PLATFORM=`uname -s`
165168

166169
case $PLATFORM in
167170
Darwin )
168-
cflags="-mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/usr/local/include"
169-
ldflags="-mmacosx-version-min=10.5 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -L/usr/local/lib"
171+
cflags="-mmacosx-version-min=${OSXMIN} -isysroot ${OSXSDKPATH} -I/usr/local/include"
172+
ldflags="-mmacosx-version-min=${OSXMIN} -Wl,-syslibroot,${OSXSDKPATH} -L/usr/local/lib"
170173
;;
171174
MINGW32* )
172175
cflags="-D__USE_MINGW_ACCESS"

0 commit comments

Comments
 (0)