On Mon, May 13, 2002 at 10:40:21PM -0400, Cliff Woolley wrote:
> On Mon, 13 May 2002, Justin Erenkrantz wrote:
> 
> > > Justin, is this related to your recent commits?
> >
> > I don't think so, but what does your link line say?  It looks like
> > apr isn't being linked in correctly.  -- justin
> 
> Aww crap, I see what's happening.  Because of the way it's finding -lapr
> now, it's finding the very old copy I have installed in /usr/local/lib and
> using it in preference to the one I just built.  That's why only *some* of
> the APR symbols show up missing... it's just the ones that have been added
> since I built that old copy in /usr/local/lib.

Hmm.  We could modify apr-config to always print the la-file even
if it doesn't exist yet.  Can you try this?  

Actually, I bet if you re-ran configure right now, apr-config would
print the .la file since it *now* exists (so it won't do the -L.. -lapr
construct).

I was considering that only printing the LA_FILE only when it exists
seems bogus.  -- justin

Index: apr-config.in
===================================================================
RCS file: /home/cvs/apr/apr-config.in,v
retrieving revision 1.15
diff -u -r1.15 apr-config.in
--- apr-config.in       1 Apr 2002 19:30:27 -0000       1.15
+++ apr-config.in       14 May 2002 02:44:56 -0000
@@ -185,19 +185,10 @@
     fi
     ;;
     --link-libtool)
-    if test -f "$LA_FILE"; then
-        flags="$flags $LA_FILE"
-    elif test "$location" = "installed"; then
-        ### avoid using -L if libdir is a "standard" location like /usr/lib
-        flags="$flags -L$libdir -lapr"
-    else
-        flags="$flags -L$thisdir -lapr"
-    fi
+    flags="$flags $LA_FILE"
     ;;
     --apr-la-file)
-    if test -f "$LA_FILE"; then
-        flags="$flags $LA_FILE"
-    fi
+    flags="$flags $LA_FILE"
     ;;
     --apr-so-ext)
     echo "$APR_SO_EXT"

Reply via email to