You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
snes9x-1.55 on Gentoo amd64 fails to build when CFLAGS/CXXFLAGS contains -ggdb, because unix/configure.ac has the following code:
# Remove -g and -O2 flags manually.
if test "x$CFLAGS" != "x"; then
CFLAGS="`echo \"$CFLAGS\" | sed -e 's/-g//'`"
CFLAGS="`echo \"$CFLAGS\" | sed -e 's/-O2//'`"
fi
if test "x$CXXFLAGS" != "x"; then
CXXFLAGS="`echo \"$CXXFLAGS\" | sed -e 's/-g//'`"
CXXFLAGS="`echo \"$CXXFLAGS\" | sed -e 's/-O2//'`"
fi
which causes gdb to be passed as a literal argument to GCC:
make --jobs=8 --load-average=16
x86_64-pc-linux-gnu-g++ -I. -I.. -I../apu/ -I../apu/bapu -I../jma/ -I../filter/ -c -pipe -march=native gdb -DJOYSTICK_SUPPORT -DUNZIP_SUPPORT -DSYSTEM_ZIP -DJMA_SUPPORT -DPTR_NOT_INT -DMITSHM ../apu/apu.cpp -o ../apu/apu.o
x86_64-pc-linux-gnu-g++ -I. -I.. -I../apu/ -I../apu/bapu -I../jma/ -I../filter/ -c -pipe -march=native gdb -DJOYSTICK_SUPPORT -DUNZIP_SUPPORT -DSYSTEM_ZIP -DJMA_SUPPORT -DPTR_NOT_INT -DMITSHM ../apu/bapu/dsp/sdsp.cpp -o ../apu/bapu/dsp/sdsp.o
x86_64-pc-linux-gnu-g++: error: gdb: No such file or directory
make: *** [Makefile:77: ../apu/apu.o] Error 1
make: *** Waiting for unfinished jobs....
x86_64-pc-linux-gnu-g++: error: gdb: No such file or directory
make: *** [Makefile:77: ../apu/bapu/dsp/sdsp.o] Error 1
It would be nice if this flag could be used with the build. Also note there are other -g..., flags, as well as -g...<level>.
Thanks!
The text was updated successfully, but these errors were encountered:
In general, the proper solution here is to use the AX_CHECK_ENABLE_DEBUG macro from the Autoconf archive before AC_PROG_CC, which only mucks with user flags if --enable-debug=yes is given to configure.
Hello,
snes9x-1.55 on Gentoo amd64 fails to build when CFLAGS/CXXFLAGS contains
-ggdb
, because unix/configure.ac has the following code:which causes
gdb
to be passed as a literal argument to GCC:It would be nice if this flag could be used with the build. Also note there are other
-g...
, flags, as well as-g...<level>
.Thanks!
The text was updated successfully, but these errors were encountered: