comparison configure.ac @ 1431:793c43cf523e fuzz

merge from main
author Matt Johnston <matt@ucc.asn.au>
date Sat, 24 Jun 2017 10:34:19 +0800
parents 69862e8cc405 a097c9c9608a
children 4afde04f0607
comparison
equal deleted inserted replaced
1428:69862e8cc405 1431:793c43cf523e
56 OLDLDFLAGS="$LDFLAGS" 56 OLDLDFLAGS="$LDFLAGS"
57 TESTFLAGS="-Wl,-pie" 57 TESTFLAGS="-Wl,-pie"
58 LDFLAGS="$LDFLAGS $TESTFLAGS" 58 LDFLAGS="$LDFLAGS $TESTFLAGS"
59 AC_LINK_IFELSE([AC_LANG_PROGRAM([])], 59 AC_LINK_IFELSE([AC_LANG_PROGRAM([])],
60 [AC_MSG_NOTICE([Setting $TESTFLAGS])], 60 [AC_MSG_NOTICE([Setting $TESTFLAGS])],
61 [AC_MSG_NOTICE([Not setting $TESTFLAGS]); LDFLAGS="$OLDLDFLAGS" ] 61 [
62 LDFLAGS="$OLDLDFLAGS"
63 TESTFLAGS="-pie"
64 LDFLAGS="$LDFLAGS $TESTFLAGS"
65 AC_LINK_IFELSE([AC_LANG_PROGRAM([])],
66 [AC_MSG_NOTICE([Setting $TESTFLAGS])],
67 [AC_MSG_NOTICE([Not setting $TESTFLAGS]); LDFLAGS="$OLDLDFLAGS" ]
68 )
69 ]
62 ) 70 )
63 # readonly elf relocation sections (relro) 71 # readonly elf relocation sections (relro)
64 OLDLDFLAGS="$LDFLAGS" 72 OLDLDFLAGS="$LDFLAGS"
65 TESTFLAGS="-Wl,-z,now -Wl,-z,relro" 73 TESTFLAGS="-Wl,-z,now -Wl,-z,relro"
66 LDFLAGS="$LDFLAGS $TESTFLAGS" 74 LDFLAGS="$LDFLAGS $TESTFLAGS"