summaryrefslogtreecommitdiff
path: root/dselect
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-09-07 04:56:32 +0200
committerGuillem Jover <guillem@debian.org>2016-10-30 06:29:50 +0100
commit44cfbc4b31de7d3dc3c6471aeaf21768b4dc015a (patch)
tree7717aa65ea55a8bf54b907374b41c1ab41107187 /dselect
parented6cbcf7a1706523580a91491adb9ecd55098f9c (diff)
downloaddpkg-44cfbc4b31de7d3dc3c6471aeaf21768b4dc015a.tar.gz
build: Pass --as-needed to the linker for dselect to avoid libstdc++
We are not really using anything from libstdc++, so let's avoid the dependency entirely. This makes this the only frontend not to pull in the C++ run-time.
Diffstat (limited to 'dselect')
-rw-r--r--dselect/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/dselect/Makefile.am b/dselect/Makefile.am
index 9c14f861c..3c0817c09 100644
--- a/dselect/Makefile.am
+++ b/dselect/Makefile.am
@@ -17,6 +17,10 @@ AM_CXXFLAGS = \
-fno-rtti \
-fno-exceptions \
$(nil)
+if HAVE_LINKER_AS_NEEDED
+AM_LDFLAGS = \
+ -Wl,--as-needed
+endif
bin_PROGRAMS = dselect