summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorPauli Nieminen <suokkos@gmail.com>2011-06-02 19:05:14 +0300
committerPauli Nieminen <suokkos@gmail.com>2011-06-02 20:28:23 +0300
commit0cf0e4702ecbf5ca302853ebc80fc93eb2fc5958 (patch)
treecf698d83c56438cc45694caaebc27b7eaae9bb74 /debian
parent15d2509ab6a0c862534e061c9fc6e860c6a2c396 (diff)
Add --as-needed flag to linker
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/rules1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 6d50de9..3167de3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,6 +21,7 @@ else
endif
CFLAGS = -Wall -g
+LDFLAGS = -Wl,--as-needed
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0