mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 19:20:54 +00:00
detect llvm-gcc in newer iOS SDKs and use gcc 4.2
This commit is contained in:
parent
24d1051584
commit
0b3e142cca
@ -1 +1 @@
|
|||||||
./configure --target=iphone --enable-launchd --enable-ldid --with-prefsbundle --with-uart-speed=921600
|
./configure --target=iphone --enable-launchd --enable-ldid --with-prefsbundle --with-uart-speed=921600 --with-gcc-version=4.2
|
13
configure.in
13
configure.in
@ -98,6 +98,11 @@ if test "x$target" = xiphone; then
|
|||||||
if test -e "$DEVELOPER_PATH/usr/bin/arm-apple-darwin10-gcc-$GCC_VERSION"; then
|
if test -e "$DEVELOPER_PATH/usr/bin/arm-apple-darwin10-gcc-$GCC_VERSION"; then
|
||||||
darwin_v='10'
|
darwin_v='10'
|
||||||
fi
|
fi
|
||||||
|
# Set up check for even newer compiler:
|
||||||
|
if test -e "$DEVELOPER_PATH/usr/bin/arm-apple-darwin10-llvm-gcc-$GCC_VERSION"; then
|
||||||
|
compiler_prefix='-llvm'
|
||||||
|
darwin_v='10'
|
||||||
|
fi
|
||||||
|
|
||||||
REMOTE_DEVICE_DB_SOURCES="remote_device_db_iphone.m"
|
REMOTE_DEVICE_DB_SOURCES="remote_device_db_iphone.m"
|
||||||
REMOTE_DEVICE_DB="remote_device_db_iphone"
|
REMOTE_DEVICE_DB="remote_device_db_iphone"
|
||||||
@ -111,8 +116,8 @@ if test "x$target" = xiphone; then
|
|||||||
echo "SDK path: $SDK_PATH"
|
echo "SDK path: $SDK_PATH"
|
||||||
echo "iPhone IP for install-iphone target: $IPHONE_IP"
|
echo "iPhone IP for install-iphone target: $IPHONE_IP"
|
||||||
|
|
||||||
CC="$DEVELOPER_PATH/usr/bin/arm-apple-darwin$darwin_v-gcc-$GCC_VERSION"
|
CC="$DEVELOPER_PATH/usr/bin/arm-apple-darwin$darwin_v$compiler_prefix-gcc-$GCC_VERSION"
|
||||||
OBJC="$DEVELOPER_PATH/usr/bin/arm-apple-darwin$darwin_v-g++-$GCC_VERSION"
|
OBJC="$DEVELOPER_PATH/usr/bin/arm-apple-darwin$darwin_v$compiler_prefix-g++-$GCC_VERSION"
|
||||||
CFLAGS="$CFLAGS -g"
|
CFLAGS="$CFLAGS -g"
|
||||||
CPPFLAGS="$CPPFLAGS -isysroot $SDK_PATH"
|
CPPFLAGS="$CPPFLAGS -isysroot $SDK_PATH"
|
||||||
LDFLAGS="$LDFLAGS -framework Foundation -framework CoreFoundation -framework UIKit -lobjc"
|
LDFLAGS="$LDFLAGS -framework Foundation -framework CoreFoundation -framework UIKit -lobjc"
|
||||||
@ -176,7 +181,7 @@ else
|
|||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
darwin*)
|
darwin*)
|
||||||
# on Mac, create universal - helps to build 32-bit iPhone Simulator apps on 64-bit machines
|
# on Mac, create universal - helps to build 32-bit iPhone Simulator apps on 64-bit machines
|
||||||
LDFLAGS="$LDFLAGS -arch ppc -arch i386 -arch x86_64 -framework CoreFoundation"
|
LDFLAGS="$LDFLAGS -framework CoreFoundation"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
USE_LDID="#"
|
USE_LDID="#"
|
||||||
@ -198,7 +203,7 @@ AM_CONDITIONAL(USE_PREFSBUNDLE, [test "x$USE_PREFSBUNDLE" == "xyes"])
|
|||||||
|
|
||||||
# summary
|
# summary
|
||||||
|
|
||||||
# echo "CFLAGS: $CFLAGS"
|
echo "CC: $CC"
|
||||||
echo "CPPFLAGS: $CPPFLAGS"
|
echo "CPPFLAGS: $CPPFLAGS"
|
||||||
echo "LDFLAGS: $LDFLAGS"
|
echo "LDFLAGS: $LDFLAGS"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user