File: 04_linker_arguments.patch

package info (click to toggle)
gnujump 1.0.8-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,412 kB
  • sloc: sh: 11,588; ansic: 7,778; makefile: 116; sed: 16
file content (16 lines) | stat: -rw-r--r-- 530 bytes parent folder | download | duplicates (5)
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 \