On Tue, Sep 02, 2014 at 05:14:50PM -0400, Andrew Piskorski wrote: > I'm configuring Naviserver like so: > > export inst_dir=/usr/local/nsd-4.99.6-dtk-1 > AUTOCONF=autoconf2.50 ./autogen.sh --prefix=$inst_dir --enable-symbols > --enable-rpath --with-tcl=/usr/lib/tcl8.5 --with-zlib=/usr/lib > > But to my surprise, even though I specified "--enable-rpath", the > build does NOT emit the necessary "-Wl,-rpath,${inst_dir}" flag when > calling gcc (or ld). Anybody know why, or how to fix this?
I can get rpath to work by making this simple change to Makefile.global: ATP_RPATH = -Wl,-rpath,${NAVISERVER}/lib NSLIBS += -L/usr/lib -ltcl8.5 ${DL_LIBS} ${LIBS} ${MATH_LIBS} -Wl,--export-dynamic -L/usr/lib $(ATP_RPATH) But of course the Makefile.global is auto-generated, and my change above will vanish anytime I re-run configure. And I am lost about how to make autoconf/configure scripts support this properly. Makefiles I understand, but Autoconf and configure not so much. Does anyone have a good reference you can point me to for learning how to debug this sort of autoconf hell? -- Andrew Piskorski <a...@piskorski.com> ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel