[jira] [Commented] (TS-1878) Link libraries as needed on linux

2016-08-15 Thread Bryan Call (JIRA)

[ 
https://issues.apache.org/jira/browse/TS-1878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15421669#comment-15421669
 ] 

Bryan Call commented on TS-1878:


[~jpe...@apache.org]
If you are not going to work on it please close.

> Link libraries as needed on linux
> -
>
> Key: TS-1878
> URL: https://issues.apache.org/jira/browse/TS-1878
> Project: Traffic Server
>  Issue Type: Improvement
>  Components: Build
>Reporter: James Peach
>Assignee: James Peach
>Priority: Minor
>  Labels: newbie
> Fix For: 7.1.0
>
> Attachments: TS-1878.diff
>
>
> We should pass {{-Wl,-as-needed}} to the linker on Linux to get it to strip 
> unused libraries. The equivalent Darwin option is {{-Wl,-dead_strip_dylibs}}.
> See also:
> http://www.gentoo.org/proj/en/qa/asneeded.xml
> 
> http://sigquit.wordpress.com/2011/02/16/why-asneeded-doesnt-work-as-expected-for-your-libraries-on-your-autotools-project/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (TS-1878) link libraries as needed on linux

2015-03-24 Thread bwahn (JIRA)

[ 
https://issues.apache.org/jira/browse/TS-1878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14378019#comment-14378019
 ] 

bwahn commented on TS-1878:
---

I add configure.ac and build.
But, I can't find difference between using of -Wl,-as-needed and not using.

Use -Wl,-as-needed :
/opt/ats/bin$ ldd -u -r traffic_server
Unused direct dependencies:
linux-vdso.so.1

Not use -Wl,-as-needed :
/opt/ats/bin$ ldd -u -r traffic_server
Unused direct dependencies:
linux-vdso.so.1

Could you describe more details?

 link libraries as needed on linux
 -

 Key: TS-1878
 URL: https://issues.apache.org/jira/browse/TS-1878
 Project: Traffic Server
  Issue Type: Improvement
  Components: Build
Reporter: James Peach
Priority: Minor
  Labels: newbie
 Fix For: 6.0.0

 Attachments: TS-1878.patch


 We should pass {{-Wl,-as-needed}} to the linker on Linux to get it to strip 
 unused libraries. The equivalent Darwin option is {{-Wl,-dead_strip_dylibs}}.
 See also:
 http://www.gentoo.org/proj/en/qa/asneeded.xml
 
 http://sigquit.wordpress.com/2011/02/16/why-asneeded-doesnt-work-as-expected-for-your-libraries-on-your-autotools-project/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)