summaryrefslogtreecommitdiff
diff options
authorArnold D. Robbins <[email protected]>2025-10-24 10:46:43 +0300
committerArnold D. Robbins <[email protected]>2025-10-24 10:46:43 +0300
commit4ed4edfe04512c5b2a2c08ff7c4ce43b5593e7a4 (patch)
tree5d0c57fbbd1ac471f619e5cd87710b955c94c6ae
parente38d673e73c57eb801701c65de8036f521eef938 (diff)
downloadgawk-master.tar.gz
Fix PMA for OpenBSD 7.x.HEADmaster
-rw-r--r--NEWS6
-rwxr-xr-xconfigure5
-rwxr-xr-xextension/configure5
-rw-r--r--m4/pma.m45
4 files changed, 17 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index ac51b4cb..17ca69f0 100644
--- a/NEWS
+++ b/NEWS
@@ -44,7 +44,11 @@ Changes from 5.3.x to 5.4.0
edit the various Makefiles after running configure and before
running make. You will need to add -DNDEBUG to the CFLAGS variable.
-8. As usual, a number of small bugs have been fixed; see the ChangeLog
+8. PMA should now work on OpenBSD 7.*. It turns out that executables on
+ that system are PIE executables, so gawk must be built with the
+ -no-pie loader flag.
+
+9. As usual, a number of small bugs have been fixed; see the ChangeLog
for the details.
Changes from 5.3.2 to 5.3.x
diff --git a/configure b/configure
index 193ec759..735eab8d 100755
--- a/configure
+++ b/configure
@@ -12073,9 +12073,12 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
*darwin*)
true # On macos we no longer need -no-pie
;;
- *cygwin* | *CYGWIN* | *solaris2.11* | freebsd13.* | openbsd7.* )
+ *cygwin* | *CYGWIN* | *solaris2.11* | freebsd13.* )
true # nothing to do, exes on these systems are not PIE
;;
+ openbsd7.* )
+ LDFLAGS="${LDFLAGS} -no-pie"
+ ;;
# Other OS's go here...
*)
# For now, play it safe
diff --git a/extension/configure b/extension/configure
index d7ba58a0..d69a2166 100755
--- a/extension/configure
+++ b/extension/configure
@@ -8819,9 +8819,12 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
*darwin*)
true # On macos we no longer need -no-pie
;;
- *cygwin* | *CYGWIN* | *solaris2.11* | freebsd13.* | openbsd7.* )
+ *cygwin* | *CYGWIN* | *solaris2.11* | freebsd13.* )
true # nothing to do, exes on these systems are not PIE
;;
+ openbsd7.* )
+ LDFLAGS="${LDFLAGS} -no-pie"
+ ;;
# Other OS's go here...
*)
# For now, play it safe
diff --git a/m4/pma.m4 b/m4/pma.m4
index d1b5f93b..391a6bea 100644
--- a/m4/pma.m4
+++ b/m4/pma.m4
@@ -27,9 +27,12 @@ then
*darwin*)
true # On macos we no longer need -no-pie
;;
- *cygwin* | *CYGWIN* | *solaris2.11* | freebsd13.* | openbsd7.* )
+ *cygwin* | *CYGWIN* | *solaris2.11* | freebsd13.* )
true # nothing to do, exes on these systems are not PIE
;;
+ openbsd7.* )
+ LDFLAGS="${LDFLAGS} -no-pie"
+ ;;
# Other OS's go here...
*)
# For now, play it safe