Tweak position of $(DLL_DEFFILE) in shared-library link commands.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 12 Feb 2014 16:22:23 +0000 (11:22 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 12 Feb 2014 16:22:23 +0000 (11:22 -0500)
Reading the GNU ld man page suggests that this is order-sensitive
and should go in front of library references.  Correction to commit
846e91e0223cf9f2821c3ad4dfffffbb929cb027.

src/Makefile.shlib

index 1db906034d69ca0342832cd0cef6dcc5a9da158e..029c7e96fcb3ca841cecca2e275133c11677c622 100644 (file)
@@ -384,7 +384,7 @@ else
 DLL_DEFFILE = lib$(NAME)dll.def
 
 $(shlib): $(OBJS) $(DLL_DEFFILE) | $(SHLIB_PREREQS)
-   $(CC) $(CFLAGS)  -shared -o $@  $(OBJS) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK) $(LIBS) $(DLL_DEFFILE) -Wl,--out-implib=$(stlib)
+   $(CC) $(CFLAGS)  -shared -o $@  $(OBJS) $(DLL_DEFFILE) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK) $(LIBS) -Wl,--out-implib=$(stlib)
 endif
 
 endif # PORTNAME == cgywin