Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
7b8f9fe7
Commit
7b8f9fe7
authored
Dec 01, 2010
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow the SDK path to be rebased
Fixed bug compiling on Mac OS X 10.5
parent
556d9a92
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
23 deletions
+28
-23
fatbuild.sh
build-scripts/fatbuild.sh
+28
-23
No files found.
build-scripts/fatbuild.sh
View file @
7b8f9fe7
...
@@ -8,6 +8,11 @@ if test x$NJOB = x; then
...
@@ -8,6 +8,11 @@ if test x$NJOB = x; then
NJOB
=
$NCPU
NJOB
=
$NCPU
fi
fi
# SDK path
if
test
x
$SDK_PATH
=
x
;
then
SDK_PATH
=
/Developer/SDKs
fi
# Generic, cross-platform CFLAGS you always want go here.
# Generic, cross-platform CFLAGS you always want go here.
CFLAGS
=
"-O3 -g -pipe"
CFLAGS
=
"-O3 -g -pipe"
...
@@ -22,15 +27,15 @@ CXX_PPC="g++-4.0 -arch ppc"
...
@@ -22,15 +27,15 @@ CXX_PPC="g++-4.0 -arch ppc"
CFLAGS_PPC
=
"-mmacosx-version-min=10.4"
CFLAGS_PPC
=
"-mmacosx-version-min=10.4"
CPPFLAGS_PPC
=
"-DMAC_OS_X_VERSION_MIN_REQUIRED=1040
\
CPPFLAGS_PPC
=
"-DMAC_OS_X_VERSION_MIN_REQUIRED=1040
\
-nostdinc
\
-nostdinc
\
-F
/Developer/SDKs
/MacOSX10.4u.sdk/System/Library/Frameworks
\
-F
$SDK_PATH
/MacOSX10.4u.sdk/System/Library/Frameworks
\
-I
/Developer/SDKs
/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include
\
-I
$SDK_PATH
/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include
\
-isystem
/Developer/SDKs
/MacOSX10.4u.sdk/usr/include"
-isystem
$SDK_PATH
/MacOSX10.4u.sdk/usr/include"
# PowerPC 32-bit linker flags
# PowerPC 32-bit linker flags
LFLAGS_PPC
=
"-arch ppc -Wl,-headerpad_max_install_names -mmacosx-version-min=10.4
\
LFLAGS_PPC
=
"-arch ppc -Wl,-headerpad_max_install_names -mmacosx-version-min=10.4
\
-F
/Developer/SDKs
/MacOSX10.4u.sdk/System/Library/Frameworks
\
-F
$SDK_PATH
/MacOSX10.4u.sdk/System/Library/Frameworks
\
-L
/Developer/SDKs
/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1
\
-L
$SDK_PATH
/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1
\
-Wl,-syslibroot,
/Developer/SDKs
/MacOSX10.4u.sdk"
-Wl,-syslibroot,
$SDK_PATH
/MacOSX10.4u.sdk"
# PowerPC 64-bit configure flags (10.5 runtime compatibility)
# PowerPC 64-bit configure flags (10.5 runtime compatibility)
# We dynamically load X11, so using the system X11 headers is fine.
# We dynamically load X11, so using the system X11 headers is fine.
...
@@ -43,15 +48,15 @@ CXX_PPC64="g++-4.0 -arch ppc64"
...
@@ -43,15 +48,15 @@ CXX_PPC64="g++-4.0 -arch ppc64"
CFLAGS_PPC64
=
"-mmacosx-version-min=10.5"
CFLAGS_PPC64
=
"-mmacosx-version-min=10.5"
CPPFLAGS_PPC64
=
"-DMAC_OS_X_VERSION_MIN_REQUIRED=1050
\
CPPFLAGS_PPC64
=
"-DMAC_OS_X_VERSION_MIN_REQUIRED=1050
\
-nostdinc
\
-nostdinc
\
-F
/Developer/SDKs
/MacOSX10.5.sdk/System/Library/Frameworks
\
-F
$SDK_PATH
/MacOSX10.5.sdk/System/Library/Frameworks
\
-I
/Developer/SDKs
/MacOSX10.5.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include
\
-I
$SDK_PATH
/MacOSX10.5.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include
\
-isystem
/Developer/SDKs
/MacOSX10.5.sdk/usr/include"
-isystem
$SDK_PATH
/MacOSX10.5.sdk/usr/include"
# PowerPC 64-bit linker flags
# PowerPC 64-bit linker flags
LFLAGS_PPC64
=
"-arch ppc64 -Wl,-headerpad_max_install_names -mmacosx-version-min=10.5
\
LFLAGS_PPC64
=
"-arch ppc64 -Wl,-headerpad_max_install_names -mmacosx-version-min=10.5
\
-F
/Developer/SDKs
/MacOSX10.5.sdk/System/Library/Frameworks
\
-F
$SDK_PATH
/MacOSX10.5.sdk/System/Library/Frameworks
\
-L
/Developer/SDKs
/MacOSX10.5.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/ppc64
\
-L
$SDK_PATH
/MacOSX10.5.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/ppc64
\
-Wl,-syslibroot,
/Developer/SDKs
/MacOSX10.5.sdk"
-Wl,-syslibroot,
$SDK_PATH
/MacOSX10.5.sdk"
# Intel 32-bit configure flags (10.4 runtime compatibility)
# Intel 32-bit configure flags (10.4 runtime compatibility)
# We dynamically load X11, so using the system X11 headers is fine.
# We dynamically load X11, so using the system X11 headers is fine.
...
@@ -65,7 +70,7 @@ CONFIG_X86="--build=`uname -p`-apple-darwin --host=i386-apple-darwin \
...
@@ -65,7 +70,7 @@ CONFIG_X86="--build=`uname -p`-apple-darwin --host=i386-apple-darwin \
# They changed this to "darwin10" in Xcode 3.2 (Snow Leopard).
# They changed this to "darwin10" in Xcode 3.2 (Snow Leopard).
GCCUSRPATH_X86
=
"
$SDK_PATH
/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1"
GCCUSRPATH_X86
=
"
$SDK_PATH
/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1"
if
[
!
-d
"
$GCCUSRPATH
"
]
;
then
if
[
!
-d
"
$GCCUSRPATH
_X86
"
]
;
then
GCCUSRPATH_X86
=
"
$SDK_PATH
/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1"
GCCUSRPATH_X86
=
"
$SDK_PATH
/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1"
fi
fi
if
[
!
-d
"
$GCCUSRPATH_X86
"
]
;
then
if
[
!
-d
"
$GCCUSRPATH_X86
"
]
;
then
...
@@ -79,15 +84,15 @@ CXX_X86="g++-4.0 -arch i386"
...
@@ -79,15 +84,15 @@ CXX_X86="g++-4.0 -arch i386"
CFLAGS_X86
=
"-mmacosx-version-min=10.4"
CFLAGS_X86
=
"-mmacosx-version-min=10.4"
CPPFLAGS_X86
=
"-DMAC_OS_X_VERSION_MIN_REQUIRED=1040
\
CPPFLAGS_X86
=
"-DMAC_OS_X_VERSION_MIN_REQUIRED=1040
\
-nostdinc
\
-nostdinc
\
-F
/Developer/SDKs
/MacOSX10.4u.sdk/System/Library/Frameworks
\
-F
$SDK_PATH
/MacOSX10.4u.sdk/System/Library/Frameworks
\
-I
$GCCUSRPATH_X86
/include
\
-I
$GCCUSRPATH_X86
/include
\
-isystem
/Developer/SDKs
/MacOSX10.4u.sdk/usr/include"
-isystem
$SDK_PATH
/MacOSX10.4u.sdk/usr/include"
# Intel 32-bit linker flags
# Intel 32-bit linker flags
LFLAGS_X86
=
"-arch i386 -Wl,-headerpad_max_install_names -mmacosx-version-min=10.4
\
LFLAGS_X86
=
"-arch i386 -Wl,-headerpad_max_install_names -mmacosx-version-min=10.4
\
-F
/Developer/SDKs
/MacOSX10.4u.sdk/System/Library/Frameworks
\
-F
$SDK_PATH
/MacOSX10.4u.sdk/System/Library/Frameworks
\
-L
$GCCUSRPATH_X86
\
-L
$GCCUSRPATH_X86
\
-Wl,-syslibroot,
/Developer/SDKs
/MacOSX10.4u.sdk"
-Wl,-syslibroot,
$SDK_PATH
/MacOSX10.4u.sdk"
# Intel 64-bit configure flags (10.5 runtime compatibility)
# Intel 64-bit configure flags (10.5 runtime compatibility)
# We dynamically load X11, so using the system X11 headers is fine.
# We dynamically load X11, so using the system X11 headers is fine.
...
@@ -100,15 +105,15 @@ CXX_X64="g++-4.0 -arch x86_64"
...
@@ -100,15 +105,15 @@ CXX_X64="g++-4.0 -arch x86_64"
CFLAGS_X64
=
"-mmacosx-version-min=10.5"
CFLAGS_X64
=
"-mmacosx-version-min=10.5"
CPPFLAGS_X64
=
"-DMAC_OS_X_VERSION_MIN_REQUIRED=1050
\
CPPFLAGS_X64
=
"-DMAC_OS_X_VERSION_MIN_REQUIRED=1050
\
-nostdinc
\
-nostdinc
\
-F
/Developer/SDKs
/MacOSX10.5.sdk/System/Library/Frameworks
\
-F
$SDK_PATH
/MacOSX10.5.sdk/System/Library/Frameworks
\
-I
/Developer/SDKs
/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1/include
\
-I
$SDK_PATH
/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1/include
\
-isystem
/Developer/SDKs
/MacOSX10.5.sdk/usr/include"
-isystem
$SDK_PATH
/MacOSX10.5.sdk/usr/include"
# Intel 64-bit linker flags
# Intel 64-bit linker flags
LFLAGS_X64
=
"-arch x86_64 -Wl,-headerpad_max_install_names -mmacosx-version-min=10.5
\
LFLAGS_X64
=
"-arch x86_64 -Wl,-headerpad_max_install_names -mmacosx-version-min=10.5
\
-F
/Developer/SDKs
/MacOSX10.5.sdk/System/Library/Frameworks
\
-F
$SDK_PATH
/MacOSX10.5.sdk/System/Library/Frameworks
\
-L
/Developer/SDKs
/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1/x86_64
\
-L
$SDK_PATH
/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1/x86_64
\
-Wl,-syslibroot,
/Developer/SDKs
/MacOSX10.5.sdk"
-Wl,-syslibroot,
$SDK_PATH
/MacOSX10.5.sdk"
#
#
# Find the configure script
# Find the configure script
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment