trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nottheoil...@apache.org
Subject [trafficserver] branch master updated: TS-1878: Add --as-needed to the linker flags
Date Wed, 08 Feb 2017 16:42:11 GMT
This is an automated email from the ASF dual-hosted git repository.

nottheoilrig pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  3e41668   TS-1878: Add --as-needed to the linker flags
3e41668 is described below

commit 3e41668cd91dcf3fddbd686bd62eb16114246460
Author: Jack Bates <jack@nottheoilrig.com>
AuthorDate: Thu Feb 2 15:50:29 2017 -0700

    TS-1878: Add --as-needed to the linker flags
    
    Normally the linker will link to every -llibrary mentioned on the
    command line. This option causes it to skip libraries that it doesn't in
    fact use any symbols from.
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index d04b812..36f6b21 100644
--- a/configure.ac
+++ b/configure.ac
@@ -627,6 +627,7 @@ esac
 
 TS_ADDTO(CPPFLAGS, [-D$host_os_def])
 
+TS_ADDTO([AM_LDFLAGS], [-Wl,--as-needed])
 
 dnl AM_PROG_AR is not always available, but it doesn't seem to be needed in older versions.
 ifdef([AM_PROG_AR],

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Mime
View raw message