From 620b0d876cd5d1b07ee488c31f8f28dae6114367 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Fri, 11 Dec 2015 13:35:09 +0000 Subject: [PATCH] - OSX clang new flto check. git-svn-id: file:///svn/unbound/trunk@3586 be551aaa-1e26-0410-a405-d3ace91eadb9 --- acx_nlnetlabs.m4 | 5 +++-- configure | 2 +- doc/Changelog | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/acx_nlnetlabs.m4 b/acx_nlnetlabs.m4 index f17c6552d..be184d2c0 100644 --- a/acx_nlnetlabs.m4 +++ b/acx_nlnetlabs.m4 @@ -2,7 +2,8 @@ # Copyright 2009, Wouter Wijngaards, NLnet Labs. # BSD licensed. # -# Version 30 +# Version 31 +# 2015-12-11 FLTO check for new OSX, clang. # 2015-11-18 spelling check fix. # 2015-11-05 ACX_SSL_CHECKS no longer adds -ldl needlessly. # 2015-08-28 ACX_CHECK_PIE and ACX_CHECK_RELRO_NOW added. @@ -423,7 +424,7 @@ AC_DEFUN([ACX_CHECK_FLTO], [ BAKCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -flto" AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], [ - if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then + if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then CFLAGS="$BAKCFLAGS" AC_MSG_RESULT(no) else diff --git a/configure b/configure index 35aa23f75..2e0e34cf4 100755 --- a/configure +++ b/configure @@ -5873,7 +5873,7 @@ main () _ACEOF if ac_fn_c_try_link "$LINENO"; then : - if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then + if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then CFLAGS="$BAKCFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } diff --git a/doc/Changelog b/doc/Changelog index 47277b6ff..2a964681b 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -4,6 +4,7 @@ removes a warning from compilation. - OSX portability, detect if sbrk is deprecated. - OSX clang, stop -pthread unused during link stage warnings. + - OSX clang new flto check. 10 December 2015: Wouter - 1.5.7 release -- 2.47.2