Seems there is a bug in the configure script for
g++ -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot;
-DVERSION=\&quot;2.12a\&quot; -DSTDC_HEADERS=1 -I. -I. -I./linux
-DLINUX -D__PORT__ -I/usr/include/SDL -D_REENTRANT
-DDATADIR=\&quot;/usr/local/share/gens\&quot; -g -O2 -I -c -o
linux/gens-g_ddraw.o `test -f linux/g_ddraw.cpp || echo
In function `_start':
: undefined reference to `main'
The bug lies in trying to pass '-I' with no pathname:
"-g -O2 -I -c -o"
This results if no X headers are found but X libs are.
In the configure script, the '$ac_x_includes' variable should
include '-I' & be removed from 'CXXFLAGS="$CXXFLAGS
So should read:
This way if the variable isn't filled, the generated
gens/Makefile still passes sane CFLAGS to g++ instead of:
Have attached a quick patch for configure script.
Note that this also includes the patch necessary for
correctly finding X includes (on my system anyway).
Of course, the ultimate reward for getting this to Make
correctly was being able to play Sonic3 with my PSX pad
via the fantastic joystick support this version brings.
Nice work :)
Log in to post a comment.