Hi again,

I've been struggling to get --enable-rpath to work in our build (on Debian
Wheezy). Up to now I'd always been patching Makefile.global.in during the
Debian build to add -Wl,-rpath manually.

Looking at --enable-rpath. It seems to trigger the substitution of
-Wl,-rpath into CC_SEARCH_FLAGS and LD_SEARCH_FLAGS by m4/tcl.m4, but they
weren't being pulled into the configure step.

But I noticed configure.ac references $TCL_CC_SEARCH_FLAGS
& $TCL_LD_SEARCH_FLAGS when setting LDRFLAGS & CCRFLAGS, but I couldn't see
where they were being set.

Could the following diff be what is intended?
Seems to make it work for me...

$ hg diff
diff -r 20530df80f68 configure.ac
--- a/configure.ac      Tue Mar 03 09:07:48 2015 +0000
+++ b/configure.ac      Thu Mar 05 14:55:42 2015 +0000
@@ -133,8 +133,8 @@
     LDSO="\$(LDLIB)"
     CCRPATHS="\$(CCRPATH)"
     LDRPATHS="\$(LDRPATH)"
-    CCRFLAG=$TCL_CC_SEARCH_FLAGS
-    LDRFLAG=$TCL_LD_SEARCH_FLAGS
+    CCRFLAG=$CC_SEARCH_FLAGS
+    LDRFLAG=$LD_SEARCH_FLAGS
     if test "$CCRFLAG" = "" ; then
       CCRPATH=
     fi



-- 
David Osborne
Qcode Software Limited
http://www.qcode.co.uk
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
naviserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to