Skip to content

Commit

Permalink
Include arch in install dir and add llvm build env
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Mar 19, 2011
1 parent 9819b15 commit e05c198
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 1 addition & 3 deletions support/osx/README
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ Now copy the buildenv* scripts to the new directory.

There are several script for building different envionments
buildenv.10.4-i386.sh, 10.4 SDK, gcc 4.0, i386
buildenv.10.5-i386.sh, 10.5 SDK, gcc 4.0, i386
buildenv.10.6-i386.sh, 10.6 SDK, gcc 4.2, i386
buildenv.10.6-x86_64.sh, 10.6 SDK, gcc 4.2, x86_64

... and others ...
buildenv.common.sh is a common help script used by all build scripts.

After you have copied the files you may want to change the INSTALLDIR
Expand Down
7 changes: 7 additions & 0 deletions support/osx/buildenv.10.6-llvm-i386.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export OSX_TARGET=10.6
export OSX_SYSROOT="/Developer/SDKs/MacOSX10.6.sdk"
export CC_ARCH="i386"
export CC="llvm-gcc-4.2"

source buildenv.common.sh

3 changes: 2 additions & 1 deletion support/osx/buildenv.common.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# pkg-config 0.18 or higher, otherwise PKG_CONFIG_LIBDIR does not work
export PKGCONFIG=/opt/local/bin/pkg-config
export INSTALLDIR="$HOME/showtime-env-$OSX_TARGET-$CC_ARCH"
export INSTALLDIR="$HOME/showtime-env-$OSX_TARGET-$CC-$CC_ARCH"
export PKG_CONFIG_LIBDIR="$INSTALLDIR/lib/pkgconfig"
export CFLAGS="-arch $CC_ARCH -isysroot $OSX_SYSROOT"
export LDFLAGS="-arch $CC_ARCH -mmacosx-version-min=$OSX_TARGET -isysroot $OSX_SYSROOT"
Expand Down Expand Up @@ -35,3 +35,4 @@ fi
make install \
)


0 comments on commit e05c198

Please sign in to comment.