summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-08-20 21:47:38 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-08-20 21:47:38 +0000
commitd99cd8036609de6b4c549051e2ee743d4309f6ca (patch)
treece6c81312303e7f2c33079aafe37c7b4c3a0ed5b
parent57a0b3669b4ce99f71f03cad41e2e68be6e194b7 (diff)
add -fno-strict-aliasing
-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'