[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using LTO with libtool

From: Schrober
Subject: Using LTO with libtool
Date: Sun, 05 May 2013 11:12:05 +0200
User-agent: KMail/4.10.2 (Linux/3.2.0-4-amd64; KDE/4.10.2; x86_64; ; )


I wanted to use link-time optimization (LTO/-flto) of GCC with libtool. I 
thought I only have to add "-flto" to CFLAGS and LDFLAGS and then I am 
finished. But it seems that this is not enough because some CFLAGS aren't 
copied to the linker command (e.g. -g). This results in a binary with missing 
information. Is there a differrent "correct" way to use libtool (through 
automake) with LTO?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]