GNU bug report logs -
#79466
31.0.50; Build in a separate directory
Previous Next
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The file INSTALL under 3b) says that it should be possible to build in a
separate directory. However this doesn't seem to work. I did something
like
cd /tmp
mkdir build
cd build
/path/to/source/configure -C CFLAGS="-O0 -g3
make
After some progress this aborts with:
...
GEN ../etc/DOC
/usr/bin/ld: cannot find dispnew.o: No such file or directory
/usr/bin/ld: cannot find frame.o: No such file or directory
/usr/bin/ld: cannot find scroll.o: No such file or directory
...
It seems that changing the .c.o rule in src/Makefile like so
.c.o:
- $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(PROFILING_CFLAGS) $<
+ $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(PROFILING_CFLAGS) $< -o $@
allows the build to complete. However the .elc files still end up in
the source directory. This might actually be useful, but I'm not sure
that it's intended.
Should we fix this?
This bug report was last modified 1 day ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.