autoconf-archive-commits
[Top][All Lists]
Advanced

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

GNU Autoconf Archive branch master updated. v2015.09.25-15-ge3d948b


From: E-mail notifications for the Autoconf Archive git repository.
Subject: GNU Autoconf Archive branch master updated. v2015.09.25-15-ge3d948b
Date: Mon, 23 Nov 2015 10:56:54 +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 Autoconf Archive".

The branch, master has been updated
       via  e3d948b0303aabb8c016c7f3d7f1d538aa5472be (commit)
      from  3a8480edb2e6784f3d8f7e6e0b4181e70c626af0 (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 e3d948b0303aabb8c016c7f3d7f1d538aa5472be
Author: Markus Armbruster <address@hidden>
Date:   Sun Nov 22 09:46:04 2015 +0100

    AX_APPEND_COMPILE_FLAGS, AX_APPEND_LINK_FLAGS: Optional INPUT arg
    
    Behaves exactly like the optional INPUT argument of
    AX_CHECK_COMPILE_FLAG, AX_CHECK_LINK_FLAG.
    
    Motivation: I'd like to add -fstack-protector-strong.  The obvious
    solution is AX_APPEND_COMPILE_FLAGS([-fstack-protector-strong]).
    
    Unfortunately, some ports of the GNU toolchain reportedly pass this
    test, then fail to link.  That's because the compiler accepts the
    flag, duly emits references to helper code in libc (on my system:
    ___stack_chk_guard()), but libc doesn't provide, and linking fails.
    
    The new argument lets me cover this failure mode:
    
        AX_APPEND_LINK_FLAGS([-fstack-protector-strong], [], [],
            [AC_LANG_SOURCE([[
        int
        main(int argc, char *argv[])
        {
            char arr[64], *dst = arr, *src = argv[0];
            while ((*dst++ = *src++)) ;
        }
            ]])])
    
    Signed-off-by: Markus Armbruster <address@hidden>

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

Summary of changes:
 m4/ax_append_compile_flags.m4 |    8 +++++---
 m4/ax_append_link_flags.m4    |    8 +++++---
 2 files changed, 10 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
GNU Autoconf Archive



reply via email to

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