trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject [trafficserver] branch master updated: Only apply the --as-needed linker flags to Linux.
Date Wed, 08 Feb 2017 17:25:27 GMT
This is an automated email from the ASF dual-hosted git repository.

jpeach 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  b4aa1fb   Only apply the --as-needed linker flags to Linux.
b4aa1fb is described below

commit b4aa1fb1879656ae340a0820cf68f54adf51750b
Author: James Peach <jpeach@apache.org>
AuthorDate: Wed Feb 8 09:21:10 2017 -0800

    Only apply the --as-needed linker flags to Linux.
    
    The --as-needed ld option is Linux-specific so only apply it when
    building on Linux hosts.
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 36f6b21..4bfe34f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -627,8 +627,6 @@ 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],
       [AM_PROG_AR])
@@ -810,6 +808,8 @@ case $host_os_def in
       flex_cflags="-Wno-unused-parameter"
     ])
 
+    TS_ADDTO([AM_LDFLAGS], [-Wl,--as-needed])
+
     ;; # linux)
 
   darwin)

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

Mime
View raw message