pcap link patch

David Scott Page page at cs.utexas.edu
Thu May 2 20:12:22 EDT 2002


Hi,

On Solaris, a dll (.so) not in the default (system) library search
path needs a search path explicity specified during the link. For
libpcap.so, I need to define PCAP_LIBS='-L/opt/sfw/lib -R/opt/sfw/lib'
in order to link and subsequently load the program without using
LD_LIBRARY_PATH (which should be relegated to debugging activities).
I don't want to define LDFLAGS, since this applies to linking in
general. The enclosed patch accomodates this.

--
Scott Page

----------------------------------- 8< ------------------------------
diff -Naur click-20020501/acclick.m4 click-20020501a/acclick.m4
--- click-20020501/acclick.m4	Sun Apr 14 18:20:42 2002
+++ click-20020501a/acclick.m4	Thu May  2 21:24:14 2002
@@ -231,7 +231,7 @@
     dnl libraries
 
     if test "$HAVE_PCAP" = yes; then
-	if test ${PCAP_LIBS-NO} = NO; then
+	if test -z ${PCAP_LIBS}; then
 	    AC_CACHE_CHECK(for -lpcap, 
                 ac_cv_pcap_library_path,
 		saveflags="$LDFLAGS"



More information about the click mailing list