contrib/jenkins.sh: Disable thread-local storage in libosmocore

Let's disable thread-local-storage by re-defining __thread in the
pre-processor.  This is required at least on Debian unstable to
get a sysmoOCTSIM build without any missing symbols to __tls_get_addr.

Change-Id: Ie75fb7e71b316be164ed69d832ffcf2bd1a04fb7
This commit is contained in:
Harald Welte 2020-07-30 21:53:14 +02:00
parent 8629ffad9b
commit 66bda78aaf
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ autoreconf --install --force
./configure --enable-static --prefix="$inst/stow/libosmocore" --host=arm-none-eabi \
--enable-embedded --disable-doxygen --disable-shared --disable-pseudotalloc \
--disable-libsctp --disable-libusb --disable-gb --enable-external-tests \
CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations -Wno-error=cpp -mthumb -Os -mlong-calls -g3 -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -I /home/laforge/projects/git/osmo-ccid-firmware/sysmoOCTSIM -Wno-error=format"
CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations -Wno-error=cpp -mthumb -Os -mlong-calls -g3 -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -I /home/laforge/projects/git/osmo-ccid-firmware/sysmoOCTSIM -Wno-error=format" \
CPPFLAGS="-D__thread=''"
make $PARALLEL_MAKE install
make clean
STOW_DIR="$inst/stow" stow --restow libosmocore