[patch, build] Restore bootstrap in building libcc1 on darwin

FX fxcoudert@gmail.com
Thu Dec 4 13:52:00 GMT 2014


> The default BOOT_CFLAGS are: -O2 -g -mdynamic-no-pic
> the libiberty pic build appends: -fno-common (and not even -fPIC) [NB -fPIC _won't_ override -mdynamic-no-pic, so that's not a simple way out]
> This means that the PIC library is being built with non-pic relocs.

config/mh-darwin says that -mdynamic-no-pic is there because it “speeds compiles by 3-5%”. I don’t think we care about speed when the bootstrap fails, so can we remove it altogether?

FX


-------------- next part --------------
A non-text attachment was scrubbed...
Name: darwin.diff
Type: application/octet-stream
Size: 974 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20141204/a7215d34/attachment.obj>


More information about the Gcc mailing list