have configure check/add --gc-sections linker option
authorRich Felker <dalias@aerifal.cx>
Thu, 5 Nov 2015 02:40:36 +0000 (21:40 -0500)
committerRich Felker <dalias@aerifal.cx>
Thu, 5 Nov 2015 02:40:36 +0000 (21:40 -0500)
commit6a851e3ab8a1ae524b2aa6218615ec1c86528e9c
treecdd197834c833b4a5a050c7b2bb12826484e9397
parent2efd38e8c70f00ca6bbc1eb5199aa507d45436cf
have configure check/add --gc-sections linker option

this allowing the linker to drop certain weak definitions that are
only used as dummies for static linking. they could be eliminated for
shared library builds using the preprocessor instead, but we are
trying to transition to using the same object files for shared and
static libc, so a link-time solution is preferable.
configure