mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-08 03:46:00 +00:00
use -fpic for libBTstack
This commit is contained in:
parent
3f827278f0
commit
cf3ec1f683
@ -91,11 +91,13 @@ case "$host_os" in
|
|||||||
REMOTE_DEVICE_DB="remote_device_db_memory"
|
REMOTE_DEVICE_DB="remote_device_db_memory"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
# treat warnings seriously
|
# treat warnings seriously
|
||||||
CFLAGS="$CFLAGS -Werror -Wall -Wpointer-arith"
|
CFLAGS="$CFLAGS -Werror -Wall -Wpointer-arith"
|
||||||
|
|
||||||
|
# 64-bit compilation requires position independent code (PIC) for libraries
|
||||||
|
BTSTACK_LIB_LDFLAGS+=" -fpic"
|
||||||
|
|
||||||
AM_CONDITIONAL(USE_POWERMANAGEMENT, [test "x$USE_POWERMANAGEMENT" == "xyes"])
|
AM_CONDITIONAL(USE_POWERMANAGEMENT, [test "x$USE_POWERMANAGEMENT" == "xyes"])
|
||||||
|
|
||||||
# summary
|
# summary
|
||||||
@ -103,6 +105,7 @@ AM_CONDITIONAL(USE_POWERMANAGEMENT, [test "x$USE_POWERMANAGEMENT" == "xyes"])
|
|||||||
echo "CC: $CC"
|
echo "CC: $CC"
|
||||||
echo "CFLAGS: $CFLAGS"
|
echo "CFLAGS: $CFLAGS"
|
||||||
echo "LDFLAGS: $LDFLAGS"
|
echo "LDFLAGS: $LDFLAGS"
|
||||||
|
echo "BTSTACK_LIB_LDFLAGS: $BTSTACK_LIB_LDFLAGS"
|
||||||
|
|
||||||
if test "x$HCI_TRANSPORT" = xUSB; then
|
if test "x$HCI_TRANSPORT" = xUSB; then
|
||||||
echo "USB_PRODUCT_ID: $USB_PRODUCT_ID"
|
echo "USB_PRODUCT_ID: $USB_PRODUCT_ID"
|
||||||
|
Loading…
Reference in New Issue
Block a user