diff options
author | Guillem Jover <guillem@debian.org> | 2016-09-07 04:56:32 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2016-10-30 06:29:50 +0100 |
commit | 44cfbc4b31de7d3dc3c6471aeaf21768b4dc015a (patch) | |
tree | 7717aa65ea55a8bf54b907374b41c1ab41107187 /dselect | |
parent | ed6cbcf7a1706523580a91491adb9ecd55098f9c (diff) | |
download | dpkg-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.am | 4 |
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 |