This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Set more sensible -O optimization on FreeBSD origin/tonyc/132704-freebsd-optimize
authorTom Hukins <tom@eborcom.com>
Wed, 10 Jan 2018 18:53:24 +0000 (18:53 +0000)
committerTony Cook <tony@develop-help.com>
Tue, 16 Jan 2018 05:13:13 +0000 (16:13 +1100)
FreeBSD's /usr/share/mk/sys.mk specifies -O2 for architectures other
than arm and mips.  By default, compile perl with the same optimization
levels.

hints/freebsd.sh

index 5d69dee..07eab0e 100644 (file)
@@ -343,3 +343,10 @@ case "$cc" in
   ;;
 esac
 
+case `uname -p` in
+arm|mips)
+  ;;
+*)
+  test "$optimize" || optimize='-O2'
+  ;;
+esac