summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/perl')
-rw-r--r--gnu/usr.bin/perl/hints/openbsd.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/usr.bin/perl/hints/openbsd.sh b/gnu/usr.bin/perl/hints/openbsd.sh
index 6b3d31e87bb..095e3bc4049 100644
--- a/gnu/usr.bin/perl/hints/openbsd.sh
+++ b/gnu/usr.bin/perl/hints/openbsd.sh
@@ -52,6 +52,9 @@ d_suidsafe=$define
# Allow a command-line override, such as -Doptimize=-g
test "$optimize" || optimize='-O2'
+# However, -O2 implies -fstrict-aliasing and perl is not (currently) alias safe
+ccflags="$ccflags -fno-strict-aliasing"
+
# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.
cat > UU/usethreads.cbu <<'EOCBU'