summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-01-25 19:57:38 -0500
committerRich Felker <dalias@aerifal.cx>2016-01-25 19:57:38 -0500
commit1619127c11a5ab5d499d4b8a9b76af74f3132400 (patch)
tree84812cbaee256f50b11d36ae16ca2da7f390b841 /src
parent5552ce52000855906a5cb4f08f2e456573cca51f (diff)
downloadmusl-1619127c11a5ab5d499d4b8a9b76af74f3132400.tar.gz
use same object files for libc.a and libc.so if compiler produces PIC
now that .lo and .o files differ only by whether -fPIC is passed (and no longer at the source level based on the SHARED macro), it's possible to use the same object files for both static and shared libc when the compiler would produce PIC for the static files anyway. this happens if the user has included -fPIC in their CFLAGS or if the compiler has been configured to produce PIE by default. we use the .lo files for both, and still append -fPIC to the CFLAGS, rather than using the .o files so that libc.so does not break catastrophically if the user later removes -fPIC from CFLAGS in config.mak or on the make command line. this also ensures that we get full -fPIC in case -fpic, -fPIE, or some other lesser-PIC option was passed in CFLAGS.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions