git: LTO: Prevent -flto being used in main system libraries.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Tue Oct 25 09:18:23 PDT 2016


commit 697e56459c4d74cd4987e1273f18e47a912b4933
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Wed Oct 12 17:04:52 2016 +0300

    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)

Summary of changes:
 lib/libc/Makefile.inc     | 6 ++++++
 lib/libm/Makefile         | 6 ++++++
 lib/libthread_xu/Makefile | 7 +++++++
 libexec/rtld-elf/Makefile | 6 ++++++
 4 files changed, 25 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/697e56459c4d74cd4987e1273f18e47a912b4933


-- 
DragonFly BSD source repository


More information about the Commits mailing list