]> granicus.if.org Git - postgresql/commitdiff
Move -L flag around for shared builds:
authorBruce Momjian <bruce@momjian.us>
Wed, 13 Jul 2005 02:11:57 +0000 (02:11 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 13 Jul 2005 02:11:57 +0000 (02:11 +0000)
I wrote:
> So either we code up some intelligence to put the "C" in the right
> position or we have to pass down "A B" and "D" separately from the
> main makefile.

The following patch might just do the former.  Please try it out.

Peter E.

src/Makefile.shlib

index 7e85e16329eb0c8e2a598c4b0277a3925206e311..448de6f24a2934ff48e710adf1594ba070d6b0fd 100644 (file)
@@ -6,7 +6,7 @@
 # Copyright (c) 1998, Regents of the University of California
 #
 # IDENTIFICATION
-#    $PostgreSQL: pgsql/src/Makefile.shlib,v 1.93 2005/07/12 23:06:48 tgl Exp $
+#    $PostgreSQL: pgsql/src/Makefile.shlib,v 1.94 2005/07/13 02:11:57 momjian Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -247,7 +247,7 @@ ifeq ($(PORTNAME), beos)
   SHLIB_LINK           += -ltermcap -lstdc++.r4 -lbind -lsocket -L/boot/develop/lib/x86
 endif
 
-SHLIB_LINK := $(filter -L%, $(LDFLAGS)) $(SHLIB_LINK)
+SHLIB_LINK := $(filter -L%, $(SHLIB_LINK)) $(filter -L%, $(LDFLAGS)) $(filter-out -L%, $(SHLIB_LINK))
 ifeq ($(enable_rpath), yes)
 SHLIB_LINK += $(rpath)
 endif