|
From: Christopher L. <cl...@an...> - 2008-06-02 04:38:23
Attachments:
makefile.patch
|
Simple fix to allow tool modules to pick up the right top_srcdir when building outside of top_srcdir. In my case I'm building under "$(top_srcdir)/build". Before: make[1]: Entering directory `/home/clayne/project/valgrind/build/exp-omega' gcc -DHAVE_CONFIG_H -I. -I../../exp-omega -I.. -I../../include -I../../VEX/pub -DVGA_amd64=1 -DVGO_linux=1 -DVGP_amd64_linux=1 -m64 -fomit-frame-pointer -O2 -g -Wmissing-prototypes -Wall -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissi ng-declarations -fno-strict-aliasing -g -O0 -Wno-long-long -Wno-pointer-sign -Wdeclaration-after-statement -fno-stack-protector -MT exp_omega_amd64_linux-o_main.o -MD -MP -MF .deps/exp_omega_amd64_linux-o_main.Tpo -c -o exp_omega_amd64_linux -o_main.o `test -f 'o_main.c' || echo '../../exp-omega/'`o_main.c ../../exp-omega/o_main.c:61:40: error: coregrind/pub_core_options.h: No such file or directory ../../exp-omega/o_main.c:62:41: error: coregrind/pub_core_debugger.h: No such file or directory ../../exp-omega/o_main.c: In function 'o_doLeakReport': ../../exp-omega/o_main.c:1644: error: 'vgPlain_clo_db_attach' undeclared (first use in this function) ../../exp-omega/o_main.c:1644: error: (Each undeclared identifier is reported only once ../../exp-omega/o_main.c:1644: error: for each function it appears in.) ../../exp-omega/o_main.c:1646: warning: implicit declaration of function 'vgPlain_start_debugger' make[1]: *** [exp_omega_amd64_linux-o_main.o] Error 1 make[1]: Leaving directory `/home/clayne/project/valgrind/build/exp-omega' make: *** [all-recursive] Error 1 After: make[3]: Entering directory `/home/clayne/project/valgrind/build/exp-omega' gcc -DHAVE_CONFIG_H -I. -I../../exp-omega -I.. -I../.. -I../../include -I../../VEX/pub -DVGA_amd64=1 -DVGO_linux=1 -DVGP_amd64_linux=1 -m64 -fomit-frame-pointer -O2 -g -Wmissing-prototypes -Wall -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -fno-strict-aliasing -g -O0 -Wno-long-long -Wno-pointer-sign -Wdeclaration-after-statement -fno-stack-protector -MT exp_omega_amd64_linux-o_main.o -MD -MP -MF .deps/exp_omega_amd64_linux-o_main.Tpo -c -o exp_omega_amd 64_linux-o_main.o `test -f 'o_main.c' || echo '../../exp-omega/'`o_main.c mv -f .deps/exp_omega_amd64_linux-o_main.Tpo .deps/exp_omega_amd64_linux-o_main.Po [...] -cl |