LTO: Prevent -flto being used in main system libraries.
authorzrj <rimvydas.jasinskas@gmail.com>
Wed, 12 Oct 2016 14:04:52 +0000 (17:04 +0300)
committerzrj <zrj@dragonflybsd.org>
Tue, 25 Oct 2016 16:31:32 +0000 (19:31 +0300)
commit697e56459c4d74cd4987e1273f18e47a912b4933
tree255dec23f33af5fb31e1a49ba9b1d851c0b03e4a
parentb02d68b2e3c9db4758891b3ea7821bb07f1bd5d6
LTO: Prevent -flto being used in main system libraries.

There are subtle ways it can get broken specially in libc and libm.
(-plugin-opt=-pass-through=-lc)
Both libpthread.a and rtld-elf could have use of LTO but it is safer
for now not to expose internals. (affects only static libs)
lib/libc/Makefile.inc
lib/libm/Makefile
lib/libthread_xu/Makefile
libexec/rtld-elf/Makefile