fixes flags against "ld: illegal text-relocation"
This commit is contained in:
parent
7e6b407921
commit
f8439f6ab6
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ fi
|
||||||
# lib not found, compile it
|
# lib not found, compile it
|
||||||
pushd .
|
pushd .
|
||||||
cd freetype-$FT_VERSION
|
cd freetype-$FT_VERSION
|
||||||
./configure --prefix=/usr/local/iphone --host=arm-apple-darwin --enable-static=yes --enable-shared=no CC=$DEVROOT/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 AR=$DEVROOT/usr/bin/ar LDFLAGS="-isysroot $SDKROOT -miphoneos-version-min=$SDKVER" CFLAGS="-pipe -mdynamic-no-pic -std=c99 -Wno-trigraphs -fpascal-strings -O2 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=$SDKVER -isysroot $SDKROOT"
|
./configure --prefix=/usr/local/iphone --host=arm-apple-darwin --enable-static=yes --enable-shared=no CC=$DEVROOT/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 AR=$DEVROOT/usr/bin/ar LDFLAGS="-isysroot $SDKROOT -miphoneos-version-min=$SDKVER" CFLAGS="-O2 -miphoneos-version-min=$SDKVER -isysroot $SDKROOT"
|
||||||
make clean
|
make clean
|
||||||
make
|
make
|
||||||
cp objs/.libs/libfreetype.a libfreetype-arm7.a
|
cp objs/.libs/libfreetype.a libfreetype-arm7.a
|
||||||
|
|
|
@ -22,7 +22,7 @@ rm libSDL_ttf.la
|
||||||
./configure --prefix=/usr/local/iphone --host=arm-apple-darwin \
|
./configure --prefix=/usr/local/iphone --host=arm-apple-darwin \
|
||||||
--enable-static=yes --enable-shared=no \
|
--enable-static=yes --enable-shared=no \
|
||||||
--without-x \
|
--without-x \
|
||||||
CC=$DEVROOT/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 AR=$DEVROOT/usr/bin/ar LDFLAGS="-isysroot $SDKROOT -miphoneos-version-min=$SDKVER" CFLAGS="-pipe -mdynamic-no-pic -std=c99 -Wno-trigraphs -fpascal-strings -O2 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=$SDKVER -isysroot $SDKROOT"
|
CC=$DEVROOT/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 AR=$DEVROOT/usr/bin/ar LDFLAGS="-isysroot $SDKROOT -miphoneos-version-min=$SDKVER" CFLAGS="-O2 -miphoneos-version-min=$SDKVER -isysroot $SDKROOT"
|
||||||
make clean
|
make clean
|
||||||
make libSDL_ttf.la
|
make libSDL_ttf.la
|
||||||
cp .libs/libSDL_ttf.a libSDL_ttf-arm7.a
|
cp .libs/libSDL_ttf.a libSDL_ttf-arm7.a
|
||||||
|
|
Loading…
Reference in a new issue