Package: gnujump / 1.0.8-3

04_linker_arguments.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Only link used libraries, and link them as libraries, not flags.

Index: gnujump-1.0.6/src/Makefile.am
===================================================================
--- gnujump-1.0.6.orig/src/Makefile.am	2011-07-19 10:21:42.217593415 +0200
+++ gnujump-1.0.6/src/Makefile.am	2011-07-19 10:21:45.345612764 +0200
@@ -4,7 +4,8 @@
 INCLUDES= $(all_includes)
 
 # the library search path.
-gnujump_LDFLAGS = $(all_libraries) 
+gnujump_LDFLAGS = -Wl,--as-needed
+gnujump_LDADD = $(all_libraries) 
 
 gnujump_SOURCES = \
 	game.h \