summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2022-09-21 22:07:39 +0300
committerArnold D. Robbins <arnold@skeeve.com>2022-09-21 22:07:39 +0300
commit878435e60f9afb4857f3af45e6fce910ebbcaf6c (patch)
tree21198611ea58463588518e3fc5c3cd9ebabd62b7 /m4
parent39f53d2df260d90afe0251360f57cf00d2f7007f (diff)
downloadgawk-878435e60f9afb4857f3af45e6fce910ebbcaf6c.tar.gz
Add pma support for systems without MAP_NORESERVE.
Diffstat (limited to 'm4')
-rw-r--r--m4/ChangeLog4
-rw-r--r--m4/pma.m410
2 files changed, 12 insertions, 2 deletions
diff --git a/m4/ChangeLog b/m4/ChangeLog
index bf60520f..705d8375 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,7 @@
+2022-09-21 Arnold D. Robbins <arnold@skeeve.com>
+
+ * pma.m4: Allow FreeBSD 13 and OpenBSD 7.
+
2022-09-04 Arnold D. Robbins <arnold@skeeve.com>
* 5.2.0: Release tar ball made.
diff --git a/m4/pma.m4 b/m4/pma.m4
index 96620ca5..0a8afef9 100644
--- a/m4/pma.m4
+++ b/m4/pma.m4
@@ -27,13 +27,19 @@ then
LDFLAGS="${LDFLAGS} -Xlinker -no_pie"
export LDFLAGS
;;
- *cygwin* | *CYGWIN* | *solaris2.11* )
- true # nothing do, Cygwin and Solaris exes are not PIE
+ *cygwin* | *CYGWIN* | *solaris2.11* | freebsd13.* | openbsd7.* )
+ true # nothing do, exes on these systems are not PIE
;;
# Other OS's go here...
*)
# For now, play it safe
use_persistent_malloc=no
+
+ # Allow override for testing on new systems
+ if test "$REALLY_USE_PERSIST_MALLOC" != ""
+ then
+ use_persistent_malloc=yes
+ fi
;;
esac
else