mirror of
https://github.com/gwenhael-le-moine/x49gp.git
synced 2024-12-25 21:58:49 +01:00
fix compilation on slackware-current 2021-10-31
This commit is contained in:
parent
9933c03253
commit
476b1ccf10
2 changed files with 5 additions and 5 deletions
2
Makefile
2
Makefile
|
@ -82,7 +82,7 @@ CC += $(shell if [ "`uname -m`" = "sparc64" -o "`uname -m`" = "sun4u" ]; then ec
|
||||||
|
|
||||||
COCOA_LIBS=$(shell if [ "`uname -s`" = "Darwin" ]; then echo "-F/System/Library/Frameworks -framework Cocoa -framework IOKit"; fi)
|
COCOA_LIBS=$(shell if [ "`uname -s`" = "Darwin" ]; then echo "-F/System/Library/Frameworks -framework Cocoa -framework IOKit"; fi)
|
||||||
|
|
||||||
X49GP_CFLAGS = -O2 -Wall -Werror $(DEBUG) $(INCLUDES) $(DEFINES)
|
X49GP_CFLAGS = -O2 -Wall -Werror $(DEBUG) $(INCLUDES) $(DEFINES) -Wno-error=deprecated-declarations -Wno-error=stringop-overflow= -Wno-error=array-bounds
|
||||||
X49GP_LDFLAGS += $(DEBUG) $(GDB_LDFLAGS)
|
X49GP_LDFLAGS += $(DEBUG) $(GDB_LDFLAGS)
|
||||||
X49GP_LDLIBS = $(X49GP_LIBS) $(GDB_LIBS) $(COCOA_LIBS)
|
X49GP_LDLIBS = $(X49GP_LIBS) $(GDB_LIBS) $(COCOA_LIBS)
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ ar="${cross_prefix}${ar}"
|
||||||
ld="${cross_prefix}${ld}"
|
ld="${cross_prefix}${ld}"
|
||||||
|
|
||||||
# default flags for all hosts
|
# default flags for all hosts
|
||||||
QEMU_CFLAGS="-fno-strict-aliasing $QEMU_CFLAGS"
|
QEMU_CFLAGS="-fno-strict-aliasing $QEMU_CFLAGS -Wno-error=array-bounds"
|
||||||
CFLAGS="-g $CFLAGS"
|
CFLAGS="-g $CFLAGS"
|
||||||
QEMU_CFLAGS="-Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes $QEMU_CFLAGS"
|
QEMU_CFLAGS="-Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes $QEMU_CFLAGS"
|
||||||
QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS"
|
QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS"
|
||||||
|
@ -96,7 +96,7 @@ int main(void) { }
|
||||||
EOF
|
EOF
|
||||||
for flag in $gcc_flags; do
|
for flag in $gcc_flags; do
|
||||||
if compile_prog "$QEMU_CFLAGS" "$flag" ; then
|
if compile_prog "$QEMU_CFLAGS" "$flag" ; then
|
||||||
QEMU_CFLAGS="$flag $QEMU_CFLAGS"
|
QEMU_CFLAGS="$flag $QEMU_CFLAGS"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -771,9 +771,9 @@ fi
|
||||||
# enable/disable
|
# enable/disable
|
||||||
if test -z "$zero_malloc" ; then
|
if test -z "$zero_malloc" ; then
|
||||||
if test "$z_version" = "50" ; then
|
if test "$z_version" = "50" ; then
|
||||||
zero_malloc="no"
|
zero_malloc="no"
|
||||||
else
|
else
|
||||||
zero_malloc="yes"
|
zero_malloc="yes"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue