diff options
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | m4/check-hardening-options.m4 | 26 | ||||
-rwxr-xr-x | tap-driver.sh | 2 |
3 files changed, 12 insertions, 19 deletions
diff --git a/configure.ac b/configure.ac index fdf72ee..8119508 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -12,7 +12,7 @@ | |||
12 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 12 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
13 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 13 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
14 | 14 | ||
15 | AC_INIT([libressl], m4_esyscmd([tr -d '\n' < VERSION])) | 15 | AC_INIT([libressl], m4_esyscmd(tr -d '\n' < VERSION)) |
16 | AC_SUBST([LIBCRYPTO_VERSION], m4_esyscmd([tr -d '\n' < crypto/VERSION])) | 16 | AC_SUBST([LIBCRYPTO_VERSION], m4_esyscmd([tr -d '\n' < crypto/VERSION])) |
17 | AC_SUBST([LIBSSL_VERSION], m4_esyscmd([tr -d '\n' < ssl/VERSION])) | 17 | AC_SUBST([LIBSSL_VERSION], m4_esyscmd([tr -d '\n' < ssl/VERSION])) |
18 | AC_SUBST([LIBTLS_VERSION], m4_esyscmd([tr -d '\n' < tls/VERSION])) | 18 | AC_SUBST([LIBTLS_VERSION], m4_esyscmd([tr -d '\n' < tls/VERSION])) |
@@ -27,7 +27,6 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | |||
27 | USER_CFLAGS="$CFLAGS" | 27 | USER_CFLAGS="$CFLAGS" |
28 | 28 | ||
29 | AC_PROG_CC([cc gcc]) | 29 | AC_PROG_CC([cc gcc]) |
30 | AC_PROG_CC_STDC | ||
31 | AM_PROG_CC_C_O | 30 | AM_PROG_CC_C_O |
32 | LT_INIT([pic-only]) | 31 | LT_INIT([pic-only]) |
33 | 32 | ||
diff --git a/m4/check-hardening-options.m4 b/m4/check-hardening-options.m4 index c8ab12e..4b5784b 100644 --- a/m4/check-hardening-options.m4 +++ b/m4/check-hardening-options.m4 | |||
@@ -4,16 +4,13 @@ AC_DEFUN([CHECK_CFLAG], [ | |||
4 | AC_MSG_CHECKING([if $saved_CC supports "$1"]) | 4 | AC_MSG_CHECKING([if $saved_CC supports "$1"]) |
5 | old_cflags="$CFLAGS" | 5 | old_cflags="$CFLAGS" |
6 | CFLAGS="$1 -Wall -Werror" | 6 | CFLAGS="$1 -Wall -Werror" |
7 | AC_TRY_LINK([ | 7 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[printf("Hello")]])], |
8 | #include <stdio.h> | 8 | [AC_MSG_RESULT([yes]) |
9 | ], | ||
10 | [printf("Hello")], | ||
11 | AC_MSG_RESULT([yes]) | ||
12 | CFLAGS=$old_cflags | 9 | CFLAGS=$old_cflags |
13 | HARDEN_CFLAGS="$HARDEN_CFLAGS $1", | 10 | HARDEN_CFLAGS="$HARDEN_CFLAGS $1"], |
14 | AC_MSG_RESULT([no]) | 11 | [AC_MSG_RESULT([no]) |
15 | CFLAGS=$old_cflags | 12 | CFLAGS=$old_cflags |
16 | [$2]) | 13 | [$2]]) |
17 | ]) | 14 | ]) |
18 | 15 | ||
19 | AC_DEFUN([CHECK_LDFLAG], [ | 16 | AC_DEFUN([CHECK_LDFLAG], [ |
@@ -21,16 +18,13 @@ AC_DEFUN([CHECK_LDFLAG], [ | |||
21 | AC_MSG_CHECKING([if $saved_LD supports "$1"]) | 18 | AC_MSG_CHECKING([if $saved_LD supports "$1"]) |
22 | old_ldflags="$LDFLAGS" | 19 | old_ldflags="$LDFLAGS" |
23 | LDFLAGS="$1 -Wall -Werror" | 20 | LDFLAGS="$1 -Wall -Werror" |
24 | AC_TRY_LINK([ | 21 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[printf("Hello")]])], |
25 | #include <stdio.h> | 22 | [AC_MSG_RESULT([yes]) |
26 | ], | ||
27 | [printf("Hello")], | ||
28 | AC_MSG_RESULT([yes]) | ||
29 | LDFLAGS=$old_ldflags | 23 | LDFLAGS=$old_ldflags |
30 | HARDEN_LDFLAGS="$HARDEN_LDFLAGS $1", | 24 | HARDEN_LDFLAGS="$HARDEN_LDFLAGS $1"], |
31 | AC_MSG_RESULT([no]) | 25 | [AC_MSG_RESULT([no]) |
32 | LDFLAGS=$old_ldflags | 26 | LDFLAGS=$old_ldflags |
33 | [$2]) | 27 | [$2]]) |
34 | ]) | 28 | ]) |
35 | 29 | ||
36 | AC_DEFUN([DISABLE_AS_EXECUTABLE_STACK], [ | 30 | AC_DEFUN([DISABLE_AS_EXECUTABLE_STACK], [ |
diff --git a/tap-driver.sh b/tap-driver.sh index 0ca4903..fea066f 100755 --- a/tap-driver.sh +++ b/tap-driver.sh | |||
@@ -1,5 +1,5 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # Copyright (C) 2011-2020 Free Software Foundation, Inc. | 2 | # Copyright (C) 2011-2021 Free Software Foundation, Inc. |
3 | # | 3 | # |
4 | # This program is free software; you can redistribute it and/or modify | 4 | # This program is free software; you can redistribute it and/or modify |
5 | # it under the terms of the GNU General Public License as published by | 5 | # it under the terms of the GNU General Public License as published by |