libtool-commit
[Top][All Lists]
Advanced

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

[SCM] GNU Libtool branch, master, updated. v2.4.2.444-29-g5911665


From: Peter Rosin
Subject: [SCM] GNU Libtool branch, master, updated. v2.4.2.444-29-g5911665
Date: Fri, 02 May 2014 12:55:27 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  5911665520a53415bafd8bb6da9989b5fe25df80 (commit)
      from  053df7eb31d21c6d6dbe54c44f42009efec9d0c9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5911665520a53415bafd8bb6da9989b5fe25df80
Author: Peter Rosin <address@hidden>
Date:   Fri May 2 14:51:02 2014 +0200

    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 <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 build-aux/ltmain.in |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index f8e0f5f..3a0fb0c 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -3738,7 +3738,12 @@ void lt_dump_script (FILE *f);
 EOF
 
            cat <<EOF
-volatile const char * MAGIC_EXE = "$magic_exe";
+#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
+# define externally_visible volatile
+#else
+# define externally_visible __attribute__((externally_visible)) volatile
+#endif
+externally_visible const char * MAGIC_EXE = "$magic_exe";
 const char * LIB_PATH_VARNAME = "$shlibpath_var";
 EOF
 


hooks/post-receive
-- 
GNU Libtool



reply via email to

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