CINXE.COM
angstrom: add an option to use -Wl,--as-needed for glibc builds - openembedded - Classic OpenEmbedded Development Tree
<!DOCTYPE html> <html lang='en'> <head> <title>angstrom: add an option to use -Wl,--as-needed for glibc builds - openembedded - Classic OpenEmbedded Development Tree</title> <meta name='generator' content='cgit 1.2.3-korg'/> <meta name='robots' content='nofollow'/> <link rel='stylesheet' type='text/css' href='/cgit-data/cgit.css'/> <script type='text/javascript' src='/cgit.js'></script> <link rel='shortcut icon' href='/favicon.ico'/> <link rel='alternate' title='Atom feed' href='http://git.openembedded.org/openembedded/atom/?h=koen/static-libs-rework' type='application/atom+xml'/> <link rel='vcs-git' href='git://git.openembedded.org/openembedded' title='openembedded Git repository'/> <link rel='vcs-git' href='https://git.openembedded.org/openembedded' title='openembedded Git repository'/> <link rel='vcs-git' href='https://git.openembedded.org/git/openembedded' title='openembedded Git repository'/> </head> <body> <div id='cgit'><table id='header'> <tr> <td class='logo' rowspan='2'><a href='/'><img src='/cgit-data/cgit.png' alt='cgit logo'/></a></td> <td class='main'><a href='/'>index</a> : <a href='/openembedded/'>openembedded</a></td><td class='form'><form method='get'> <select name='h' onchange='this.form.submit();'> <option value='2011.03-maintenance'>2011.03-maintenance</option> <option value='aldot/fixes'>aldot/fixes</option> <option value='bluelightning/opie-18bpp'>bluelightning/opie-18bpp</option> <option value='bluelightning/opie-fixes'>bluelightning/opie-fixes</option> <option value='bluelightning/opie-git'>bluelightning/opie-git</option> <option value='cbrake/qt-4.7.0'>cbrake/qt-4.7.0</option> <option value='darwin'>darwin</option> <option value='fso/milestone5'>fso/milestone5</option> <option value='fso/milestone5.5'>fso/milestone5.5</option> <option value='hipox'>hipox</option> <option value='holger/hash-style'>holger/hash-style</option> <option value='holger/openmoko-merges'>holger/openmoko-merges</option> <option value='holger/qt4-4.7'>holger/qt4-4.7</option> <option value='holger/qt4-sdk'>holger/qt4-sdk</option> <option value='holger/random-fixes'>holger/random-fixes</option> <option value='holger/staging-branch'>holger/staging-branch</option> <option value='ieee80215'>ieee80215</option> <option value='jan/master'>jan/master</option> <option value='john_lee/fastboot-devel'>john_lee/fastboot-devel</option> <option value='john_lee/openmoko-toolchain'>john_lee/openmoko-toolchain</option> <option value='kergoth/autotools'>kergoth/autotools</option> <option value='kergoth/bluez'>kergoth/bluez</option> <option value='kergoth/hostap-madwifi'>kergoth/hostap-madwifi</option> <option value='kergoth/master'>kergoth/master</option> <option value='khem/import-linaro-gcc-4.5'>khem/import-linaro-gcc-4.5</option> <option value='koen/darwin-host-fixes'>koen/darwin-host-fixes</option> <option value='koen/static-libs-rework' selected='selected'>koen/static-libs-rework</option> <option value='laibsch/scim'>laibsch/scim</option> <option value='laibsch/wip'>laibsch/wip</option> <option value='likewise/nios2'>likewise/nios2</option> <option value='master'>master</option> <option value='mckoan/kaeilos-2009'>mckoan/kaeilos-2009</option> <option value='mckoan/kaeilos-2011'>mckoan/kaeilos-2011</option> <option value='mckoan/kaeilos-2012'>mckoan/kaeilos-2012</option> <option value='mdietze/nylon'>mdietze/nylon</option> <option value='morphis/for-upstream'>morphis/for-upstream</option> <option value='nios2'>nios2</option> <option value='org.openembedded.angstrom-2007.12-stable'>org.openembedded.angstrom-2007.12-stable</option> <option value='org.openembedded.dev'>org.openembedded.dev</option> <option value='org.openembedded.documentation'>org.openembedded.documentation</option> <option value='org.openembedded.dreambox'>org.openembedded.dreambox</option> <option value='org.openembedded.dreambox.release_25'>org.openembedded.dreambox.release_25</option> <option value='org.openembedded.oetest'>org.openembedded.oetest</option> <option value='org.openembedded.oz354fam083'>org.openembedded.oz354fam083</option> <option value='org.openembedded.oz354x'>org.openembedded.oz354x</option> <option value='org.openembedded.packaged-staging'>org.openembedded.packaged-staging</option> <option value='org.openembedded.slugos.5.3-beta'>org.openembedded.slugos.5.3-beta</option> <option value='org.openembedded.stable'>org.openembedded.stable</option> <option value='org.openmbedded.dev'>org.openmbedded.dev</option> <option value='pb/toolchain-desuck'>pb/toolchain-desuck</option> <option value='push/oe'>push/oe</option> <option value='raster'>raster</option> <option value='rik/amd64'>rik/amd64</option> <option value='rik/qemu-0.12'>rik/qemu-0.12</option> <option value='robertschuster/amd64-target'>robertschuster/amd64-target</option> <option value='rpurdie/for-testing'>rpurdie/for-testing</option> <option value='rpurdie/work-in-progress'>rpurdie/work-in-progress</option> <option value='shared/blackfin'>shared/blackfin</option> <option value='shared/xorg-7.4-update'>shared/xorg-7.4-update</option> <option value='shr/import'>shr/import</option> <option value='shr/merge'>shr/merge</option> <option value='shr/stable2009'>shr/stable2009</option> <option value='shr/testing2009'>shr/testing2009</option> <option value='shr/testing2010'>shr/testing2010</option> <option value='shr/testing2011.1'>shr/testing2011.1</option> <option value='shr/unstable'>shr/unstable</option> <option value='slugos/slugos6.0-beta'>slugos/slugos6.0-beta</option> <option value='stable/2009'>stable/2009</option> <option value='stefan/eten-support'>stefan/eten-support</option> <option value='tasks-reduction'>tasks-reduction</option> <option value='testing'>testing</option> <option value='testing-next'>testing-next</option> <option value='testing-next-test'>testing-next-test</option> <option value='thesing/arm4-eabi-angstrom'>thesing/arm4-eabi-angstrom</option> <option value='ulf/linux-2.6.39-2011-11-21'>ulf/linux-2.6.39-2011-11-21</option> <option value='ulf/linux-2.6.39-2011-11-22'>ulf/linux-2.6.39-2011-11-22</option> <option value='upstream'>upstream</option> <option value='xora/angstrom-sqeeezy'>xora/angstrom-sqeeezy</option> <option value='xora/angstrom-srcpv'>xora/angstrom-srcpv</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>Classic OpenEmbedded Development Tree</td><td class='sub right'>Grokmirror user</td></tr></table> <table class='tabs'><tr><td> <a href='/openembedded/about/?h=koen/static-libs-rework'>about</a><a href='/openembedded/?h=koen/static-libs-rework'>summary</a><a href='/openembedded/refs/?h=koen/static-libs-rework'>refs</a><a href='/openembedded/log/?h=koen/static-libs-rework'>log</a><a href='/openembedded/tree/?h=koen/static-libs-rework'>tree</a><a class='active' href='/openembedded/commit/?h=koen/static-libs-rework'>commit</a><a href='/openembedded/diff/?h=koen/static-libs-rework'>diff</a><a href='/openembedded/stats/?h=koen/static-libs-rework'>stats</a></td><td class='form'><form class='right' method='get' action='/openembedded/log/'> <input type='hidden' name='h' value='koen/static-libs-rework'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='h' value='koen/static-libs-rework'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'> <tr><th>author</th><td><span class='libravatar'><img class='inline' src='//seccdn.libravatar.org/avatar/0791c385bd3c77c891b53ae21147d4fe?s=13&d=retro' /><img class='onhover' src='//seccdn.libravatar.org/avatar/0791c385bd3c77c891b53ae21147d4fe?s=128&d=retro' /></span>Koen Kooi <koen@openembedded.org></td><td class='right'>2009-10-26 18:21:05 +0100</td></tr> <tr><th>committer</th><td><span class='libravatar'><img class='inline' src='//seccdn.libravatar.org/avatar/0791c385bd3c77c891b53ae21147d4fe?s=13&d=retro' /><img class='onhover' src='//seccdn.libravatar.org/avatar/0791c385bd3c77c891b53ae21147d4fe?s=128&d=retro' /></span>Koen Kooi <koen@openembedded.org></td><td class='right'>2009-10-27 10:25:09 +0100</td></tr> <tr><th>commit</th><td colspan='2' class='oid'><a href='/openembedded/commit/?h=koen/static-libs-rework&id=44ec0ef1a3cc835b5b1df6b8a340340bcc4342ea'>44ec0ef1a3cc835b5b1df6b8a340340bcc4342ea</a> (<a href='/openembedded/patch/?id=44ec0ef1a3cc835b5b1df6b8a340340bcc4342ea'>patch</a>)</td></tr> <tr><th>tree</th><td colspan='2' class='oid'><a href='/openembedded/tree/?h=koen/static-libs-rework'>0bf1fcd89f5468ef87cc482d1d7aa8ebfe3a6d17</a></td></tr> <tr><th>parent</th><td colspan='2' class='oid'><a href='/openembedded/commit/?h=koen/static-libs-rework&id=f6fb860bffabaf25052a487e922b25115c104608'>f6fb860bffabaf25052a487e922b25115c104608</a> (<a href='/openembedded/diff/?h=koen/static-libs-rework&id2=f6fb860bffabaf25052a487e922b25115c104608'>diff</a>)</td></tr><tr><th>download</th><td colspan='2' class='oid'><a href='/openembedded/snapshot/openembedded-koen/static-libs-rework.tar.gz'>openembedded-koen/static-libs-rework.tar.gz</a><br/></td></tr></table> <div class='commit-subject'>angstrom: add an option to use -Wl,--as-needed for glibc builds<span class='decoration'><a class='branch-deco' href='/openembedded/log/?h=koen/static-libs-rework'>koen/static-libs-rework</a></span></div><div class='commit-msg'>Console-image builds and seems to work, but this needs lots of testing before getting enabled </div><div class='diffstat-header'><a href='/openembedded/diff/?h=koen/static-libs-rework'>Diffstat</a></div><table summary='diffstat' class='diffstat'><tr><td class='mode'>-rw-r--r--</td><td class='upd'><a href='/openembedded/diff/conf/distro/include/angstrom-glibc.inc?h=koen/static-libs-rework'>conf/distro/include/angstrom-glibc.inc</a></td><td class='right'>3</td><td class='graph'><table summary='file diffstat' width='26%'><tr><td class='add' style='width: 11.5%;'/><td class='rem' style='width: 0.0%;'/><td class='none' style='width: 88.5%;'/></tr></table></td></tr> <tr><td class='mode'>-rw-r--r--</td><td class='add'><a href='/openembedded/diff/conf/distro/include/angstrom-ldflags.inc?h=koen/static-libs-rework'>conf/distro/include/angstrom-ldflags.inc</a></td><td class='right'>26</td><td class='graph'><table summary='file diffstat' width='26%'><tr><td class='add' style='width: 100.0%;'/><td class='rem' style='width: 0.0%;'/><td class='none' style='width: 0.0%;'/></tr></table></td></tr> </table><div class='diffstat-summary'>2 files changed, 29 insertions, 0 deletions</div><table summary='diff' class='diff'><tr><td><div class='head'>diff --git a/conf/distro/include/angstrom-glibc.inc b/conf/distro/include/angstrom-glibc.inc<br/>index 6fdf0d3c77..c8607c6001 100644<br/>--- a/<a href='/openembedded/tree/conf/distro/include/angstrom-glibc.inc?h=koen/static-libs-rework&id=f6fb860bffabaf25052a487e922b25115c104608'>conf/distro/include/angstrom-glibc.inc</a><br/>+++ b/<a href='/openembedded/tree/conf/distro/include/angstrom-glibc.inc?h=koen/static-libs-rework&id=44ec0ef1a3cc835b5b1df6b8a340340bcc4342ea'>conf/distro/include/angstrom-glibc.inc</a></div><div class='hunk'>@@ -24,5 +24,8 @@ BUILD_OPTIMIZATION_pn-perl-native = "-O1 -g"</div><div class='ctx'> </div><div class='ctx'> TARGET_LINK_HASH_STYLE = "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH',d,1) in ['mips', 'mipsel']]}"</div><div class='ctx'> </div><div class='add'>+# Disable -Wl,as-needed for now till all the test come back OK</div><div class='add'>+#require conf/distro/include/angstrom-ldflags.inc</div><div class='add'>+</div><div class='ctx'> CXXFLAGS += "-fvisibility-inlines-hidden"</div><div class='ctx'> </div><div class='head'>diff --git a/conf/distro/include/angstrom-ldflags.inc b/conf/distro/include/angstrom-ldflags.inc<br/>new file mode 100644<br/>index 0000000000..6c60568798<br/>--- /dev/null<br/>+++ b/<a href='/openembedded/tree/conf/distro/include/angstrom-ldflags.inc?h=koen/static-libs-rework&id=44ec0ef1a3cc835b5b1df6b8a340340bcc4342ea'>conf/distro/include/angstrom-ldflags.inc</a></div><div class='hunk'>@@ -0,0 +1,26 @@</div><div class='add'>+</div><div class='add'>+# Set as-need to an intermediate var...</div><div class='add'>+ASNEEDED = "-Wl,--as-needed"</div><div class='add'>+</div><div class='add'>+# ...so we can blacklist it for recipes that break with it</div><div class='add'>+ASNEEDED_pn-console-tools = ""</div><div class='add'>+ASNEEDED_pn-distcc = ""</div><div class='add'>+ASNEEDED_pn-openobex = ""</div><div class='add'>+ASNEEDED_pn-icu = ""</div><div class='add'>+ASNEEDED_pn-xserver-kdrive-xomap = ""</div><div class='add'>+ASNEEDED_pn-minimo = ""</div><div class='add'>+ASNEEDED_pn-pciutils = ""</div><div class='add'>+ASNEEDED_pn-puzzles = ""</div><div class='add'>+ASNEEDED_pn-dialer = ""</div><div class='add'>+ASNEEDED_pn-pulseaudio = ""</div><div class='add'>+ASNEEDED_pn-python = ""</div><div class='add'>+ASNEEDED_pn-libproxy = ""</div><div class='add'>+ASNEEDED_pn-libxsettings-client = ""</div><div class='add'>+ASNEEDED_pn-libmatchbox = ""</div><div class='add'>+ASNEEDED_pn-faac = ""</div><div class='add'>+ASNEEDED_pn-wireless-tools = ""</div><div class='add'>+ASNEEDED_pn-ffmpeg = ""</div><div class='add'>+</div><div class='add'>+# Append it to TARGET_LDLFLAGS </div><div class='add'>+TARGET_LDFLAGS += "${ASNEEDED}"</div><div class='add'>+</div></td></tr></table></div> <!-- class=content --> <div class='footer'>generated by <a href='https://git.zx2c4.com/cgit/about/'>cgit 1.2.3-korg</a> (<a href='https://git-scm.com/'>git 2.39.0</a>) at 2024-11-25 17:59:58 +0000</div> </div> <!-- id=cgit --> </body> </html>