[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] gawk branch, feature/pma2, updated. gawk-4.1.0-4746-gb0774ab1
From: |
Arnold Robbins |
Subject: |
[SCM] gawk branch, feature/pma2, updated. gawk-4.1.0-4746-gb0774ab1 |
Date: |
Tue, 14 Jun 2022 08:14:01 -0400 (EDT) |
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 "gawk".
The branch, feature/pma2 has been updated
via b0774ab145fe4828e54da22e6deb850fcceafcf4 (commit)
from fdab60d8bd6d78159571d2c4e1c4d08e0684a0ab (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 -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=b0774ab145fe4828e54da22e6deb850fcceafcf4
commit b0774ab145fe4828e54da22e6deb850fcceafcf4
Author: Arnold D. Robbins <arnold@skeeve.com>
Date: Tue Jun 14 15:13:38 2022 +0300
Use -no-pie only for gcc and clang.
diff --git a/configure b/configure
index 1530879a..302392f7 100755
--- a/configure
+++ b/configure
@@ -12541,10 +12541,23 @@ printf "%s\n" "#define USE_PERSISTENT_MALLOC 1"
>>confdefs.h
use_persistent_malloc=yes
case $host_os in
linux-*)
- LDFLAGS="${LDFLAGS} -no-pie"
- export LDFLAGS
+ case $CC in
+ gcc | clang)
+ LDFLAGS="${LDFLAGS} -no-pie"
+ export LDFLAGS
+ ;;
+ *)
+ # tinycc and pcc don't support -no-pie flag
+ # their executables are non-PIE automatically
+ # so no need to do anything
+ ;;
+ esac
;;
# Other OS's go here...
+ *)
+ # For now, play it safe
+ use_persistent_malloc=no
+ ;;
esac
else
use_persistent_malloc=no
diff --git a/m4/ChangeLog b/m4/ChangeLog
index b9a5f7b2..48662e93 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,8 @@
+2022-06-14 Arnold D. Robbins <arnold@skeeve.com>
+
+ * pma.m4: Put -no-pie inside additional check for gcc and clang.
+ Tinycc and PCC are no-PIE anyway.
+
2022-06-13 Arnold D. Robbins <arnold@skeeve.com>
* pma.m4: Put -no-pie inside check for Linux.
diff --git a/m4/pma.m4 b/m4/pma.m4
index ed9eb7dd..0b720da5 100644
--- a/m4/pma.m4
+++ b/m4/pma.m4
@@ -15,10 +15,23 @@ AC_DEFUN([GAWK_USE_PERSISTENT_MALLOC],
use_persistent_malloc=yes
case $host_os in
linux-*)
- LDFLAGS="${LDFLAGS} -no-pie"
- export LDFLAGS
+ case $CC in
+ gcc | clang)
+ LDFLAGS="${LDFLAGS} -no-pie"
+ export LDFLAGS
+ ;;
+ *)
+ # tinycc and pcc don't support -no-pie flag
+ # their executables are non-PIE automatically
+ # so no need to do anything
+ ;;
+ esac
;;
# Other OS's go here...
+ *)
+ # For now, play it safe
+ use_persistent_malloc=no
+ ;;
esac
else
use_persistent_malloc=no
-----------------------------------------------------------------------
Summary of changes:
configure | 17 +++++++++++++++--
m4/ChangeLog | 5 +++++
m4/pma.m4 | 17 +++++++++++++++--
3 files changed, 35 insertions(+), 4 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] gawk branch, feature/pma2, updated. gawk-4.1.0-4746-gb0774ab1,
Arnold Robbins <=