FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 08-07-2010, 02:45 PM
Samuli Suominen
 
Default RFC: Example autoconf code for enabling -Wl,--as-needed from upstream configure script

Could use eyepair or two to doublecheck the example code in:

[1] http://bugs.gentoo.org/attachment.cgi?id=241779
[2] http://bugs.gentoo.org/show_bug.cgi?id=331527

It would go as a reference for upstreams in our asneeded guide...

Thanks, Samuli
 
Old 08-07-2010, 02:58 PM
Alexis Ballier
 
Default RFC: Example autoconf code for enabling -Wl,--as-needed from upstream configure script

On Saturday 07 August 2010 17:45:02 Samuli Suominen wrote:
> Could use eyepair or two to doublecheck the example code in:
>
> [1] http://bugs.gentoo.org/attachment.cgi?id=241779
> [2] http://bugs.gentoo.org/show_bug.cgi?id=331527

You should use AC_TRY_LINK or something similar to check for toolchain
support. Hardcoding a given set of strings matching the version is generally
not a good way of writing a check; if you check something, check it for real.

Also if you pass -Wl,--as-needed to the compiler that's what you should check
rather than if the supposed linker supports --as-needed; I suppose AC_TRY_LINK
will do that.

A.
 

Thread Tools




All times are GMT. The time now is 11:07 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org