spl (1.0~pre6-3.1) 02_fix-ld---as-needed-ftbfs

Summary

 GNUmakefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

Author: Matthias Klose <doko@ubuntu.com>	vim:ft=diff:
Description: Fix FTBFS with ld --as-needed
Bug-Debian: http://bugs.debian.org/641439
Bug-Ubuntu: http://launchpad.net/bugs/832785

--- a/GNUmakefile
+++ b/GNUmakefile
@@ -151,7 +151,7 @@
 endif
 
 ifeq ($(BUILDING_FOR_CYGWIN)$(BUILDING_FOR_MINGW),00)
-  LDLIBS = $(LDLIBS_DL) -lspl -lm
+  LDLIBS = -lspl $(LDLIBS_DL) -lm
   SPL_LIBS = libspl.a
   MOD_LIBS =
   CFLAGS += -fPIC