From 02a1eb4aae5e8df97fbb6dbcb9845e37195a7dbd Mon Sep 17 00:00:00 2001 From: Antoine Verheijen Date: Wed, 19 Jan 2011 16:06:03 -0700 Subject: [PATCH] OpenBSD: Change code optimization setting Change the optimization level set when optimization is enabled during build from the sytem default of '-O' to '-O2' for OpenBSD systems. Change-Id: I20962c124da5426409638453e1efdd37b4e5f393 Reviewed-on: http://gerrit.openafs.org/3689 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/cf/osconf.m4 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cf/osconf.m4 b/src/cf/osconf.m4 index 40b3db6bb6..be15b1452f 100644 --- a/src/cf/osconf.m4 +++ b/src/cf/osconf.m4 @@ -367,7 +367,10 @@ case $AFS_SYSNAME in ;; *_obsd*) + KERN_OPTMZ=-O2 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}' + LWP_OPTMZ=-O2 + OPTMZ=-O2 PAM_OPTMZ=-O2 PAM_CFLAGS="-pipe -fpic" SHLIB_CFLAGS="-fpic"