From: Peter Rosin Date: Fri, 2 May 2014 12:51:02 +0000 (+0200) Subject: libtool: prevent lto from stripping the magic cookie from the cwrapper X-Git-Tag: v2.4.3~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5911665520a53415bafd8bb6da9989b5fe25df80;p=thirdparty%2Flibtool.git libtool: prevent lto from stripping the magic cookie from the cwrapper Whole program optimization may remove unused symbols unless told they are really needed. Fixes sr #108559 reported by LRN. * build-aux/ltmain.in (func_emit_cwrapperexe_src:MAGIC_EXE): Try to ensure that the magic cookie is preserved. Signed-off-by: Peter Rosin --- diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index f8e0f5fbb..3a0fb0c52 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -3738,7 +3738,12 @@ void lt_dump_script (FILE *f); EOF cat <