mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 05:35:02 -05:00
build: Enforce -Wundef on all targets.
Simulators (and some hosted targets) no longer get a free pass! This commit includes general fixes for simulator builds, but it will undoubtedly result in many more warnings that need to be properly fixed. Change-Id: I6bb9d3fc4a29ccfe40366c438e058b5dfff0ddc3
This commit is contained in:
parent
7ba4af6ab0
commit
0f8f05db29
4 changed files with 20 additions and 10 deletions
12
tools/configure
vendored
12
tools/configure
vendored
|
|
@ -262,7 +262,7 @@ simcc () {
|
|||
app_type=$1
|
||||
winbuild=""
|
||||
macbuild=""
|
||||
GCCOPTS=`echo $CCOPTS | sed -e s/\ -ffreestanding// -e s/\ -nostdlib// -e s/\ -Wundef//`
|
||||
GCCOPTS=`echo $CCOPTS | sed -e s/\ -ffreestanding// -e s/\ -nostdlib//`
|
||||
|
||||
if [ "yes" = "$use_debug" ]; then
|
||||
GCCOPTS=`echo $GCCOPTS | sed -e s/\ -Os/\ -Og/`
|
||||
|
|
@ -638,7 +638,7 @@ maemocc () {
|
|||
# Scratchbox sets up "gcc" based on the active target
|
||||
prefixtools ""
|
||||
|
||||
GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//`
|
||||
GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib//`
|
||||
GCCOPTS="$GCCOPTS -fno-builtin -g -I\$(SIMDIR)"
|
||||
GCCOPTIMIZE=''
|
||||
LDOPTS="-lm -ldl $LDOPTS"
|
||||
|
|
@ -733,7 +733,7 @@ pandoracc () {
|
|||
LDOPTS="-L$PNDSDK/arm-angstrom-linux-gnueabi/usr/lib -Wl,-rpath,$PNDSDK/arm-angstrom-linux-gnueabi/usr/lib $LDOPTS"
|
||||
PKG_CONFIG="pkg-config"
|
||||
|
||||
GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//`
|
||||
GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib//`
|
||||
GCCOPTS="$GCCOPTS -fno-builtin -g -I\$(SIMDIR)"
|
||||
GCCOPTIMIZE=''
|
||||
LDOPTS="-lm -ldl $LDOPTS"
|
||||
|
|
@ -813,7 +813,7 @@ androidcc () {
|
|||
|
||||
# the prebuilt android NDK only supports x86_64 architecture anyway, so we can take shortcuts
|
||||
buildhost=$(uname | tr "[:upper:]" "[:lower:]")-x86_64
|
||||
GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//`
|
||||
GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib//`
|
||||
LDOPTS="$LDOPTS -ldl -llog"
|
||||
if [ "$modelname" != "ibassodx50" ] && [ "$modelname" != "ibassodx90" ]; then
|
||||
LDOPTS="$LDOPTS -Wl,-soname,librockbox.so -shared"
|
||||
|
|
@ -903,7 +903,7 @@ androidndkcc()
|
|||
# the prebuilt android NDK only supports x86_64 architecture anyway, so we can take shortcuts
|
||||
buildhost=$(uname -s | tr "[:upper:]" "[:lower:]")-x86_64
|
||||
|
||||
GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//`
|
||||
GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib//`
|
||||
LDOPTS="$LDOPTS -ldl -llog"
|
||||
SHARED_LDFLAGS="-shared"
|
||||
SHARED_CFLAGS=''
|
||||
|
|
@ -988,7 +988,7 @@ rgnanocc () {
|
|||
DLLWRAP=$FUNKEY_SDK_PATH/bin/arm-funkey-linux-musleabihf-dllwrap
|
||||
RANLIB=$FUNKEY_SDK_PATH/bin/arm-funkey-linux-musleabihf-gcc-ranlib
|
||||
|
||||
GCCOPTS=`echo $CCOPTS | sed -e s/\ -ffreestanding// -e s/\ -nostdlib// -e s/\ -Wundef//`
|
||||
GCCOPTS=`echo $CCOPTS | sed -e s/\ -ffreestanding// -e s/\ -nostdlib//`
|
||||
|
||||
if [ "yes" = "$use_debug" ]; then
|
||||
GCCOPTS=`echo $GCCOPTS | sed -e s/\ -Os/\ -Og/`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue