Can't build Pike 7.2 or 7.3 in separate build directory
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1181
Reported by David Hedbor, Idonex / Real Networks david@hedbor.org
I can no longer build Pike 7.2 or 7.3 using a separate build directory. The object files gets placed in the source tree for some weird reason. Pike 7.0 build works fine so it's nothing wrong on my end AFAIK. I tried checking out Pike 7.2 from scratch (removing the old source tree) and then running 'make' (i.e the "automatic build" feature). It didn't work. This is an example of some output when running make -n (notice the last line - ie the .o file destination):
echo Making Gdbm; \
( cd Gdbm && \
( rm remake >/dev/null 2>&1 || : ) && \
( make MODNAME=Gdbm || \
( test -f remake && make MODNAME=Gdbm ) ) \
) || exit $?;
Making Gdbm
make[3]: Entering directory
`/home/neotron/pike/7.2/build/linux-2.4.1-4mdk-i686/modules/Gdbm'
if test "x" != x ; then echo "LINKER_OPTIONS+=" ; else : ; fi ; echo ""
>linker_options
echo "" >modlist_headers
echo "" >modlist_segment
echo "Compiling /home/neotron/pike/7.2/src/modules/Gdbm/gdbmmod.c" ;\
if /home/neotron/pike/7.2/build/linux-2.4.1-4mdk-i686/smartlink gcc -I.
-I/home/neotron/pike/7.2/src/modules/Gdbm
-I/home/neotron/pike/7.2/src/modules/Gdbm/../.. -I../.. -I.
-I/usr/local/include -I/usr/X11R6-DRI/include -I/usr/X11R6/include
-I/home/neotron/pike/7.2/src
-I/home/neotron/pike/7.2/build/linux-2.4.1-4mdk-i686 -g -mpentiumpro -O2
-pipe -W -Wall -Wno-unused -Wcomment -Wformat
-Wimplicit-function-declaration -Wmultichar -Wswitch -Wuninitialized
-Wpointer-arith -Wchar-subscripts -Wno-long-long -fPIC -DDYNAMIC_MODULE
-c /home/neotron/pike/7.2/src/modules/Gdbm/gdbmmod.c -o
/home/neotron/pike/7.2/src/modules/Gdbm/gdbmmod.o ; then : ;\