mirror of https://gerrit.osmocom.org/libosmocore
jenkins_arm.sh: Use same Werror related options as on other builds
Change-Id: I45ab11b461a35923853f38b5bedd5025f53cc5b5
This commit is contained in:
parent
7869baf843
commit
61650d5117
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
. $(dirname "$0")/jenkins_common.sh
|
. $(dirname "$0")/jenkins_common.sh
|
||||||
|
|
||||||
|
|
||||||
|
# from ../configure.ac
|
||||||
|
WERROR_FLAGS="-Werror -Wno-error=deprecated -Wno-error=deprecated-declarations -Wno-error=cpp"
|
||||||
|
|
||||||
src_dir="$PWD"
|
src_dir="$PWD"
|
||||||
build() {
|
build() {
|
||||||
build_dir="$1"
|
build_dir="$1"
|
||||||
|
@ -14,7 +18,7 @@ build() {
|
||||||
--enable-embedded \
|
--enable-embedded \
|
||||||
--disable-doxygen \
|
--disable-doxygen \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs -Werror"
|
CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs $WERROR_FLAGS"
|
||||||
|
|
||||||
$MAKE $PARALLEL_MAKE
|
$MAKE $PARALLEL_MAKE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue