From e10957c01d0e2eadcea7cc49be9b5f7ed9beefe6 Mon Sep 17 00:00:00 2001 From: Antoine Verheijen Date: Mon, 8 Feb 2010 14:44:55 -0700 Subject: [PATCH] OpenBSD: allow code optimization to be turned off Code optimization can not be turned of using the configuration script (--disable-optimize, etc.) because the compiler directive is associated with the wrong makefile variable. This fixes it. Change-Id: I55759054fdad9677d9576e582df6829c4c508331 Reviewed-on: http://gerrit.openafs.org/1256 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/cf/osconf.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cf/osconf.m4 b/src/cf/osconf.m4 index 29d5649c4..4beb6ff75 100644 --- a/src/cf/osconf.m4 +++ b/src/cf/osconf.m4 @@ -436,11 +436,12 @@ case $AFS_SYSNAME in MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}' MT_LIBS="-pthread" PAM_CFLAGS="-O2 -pipe -fpic" + OPTMZ="-O2" SHLIB_CFLAGS="-fpic" SHLIB_LDFLAGS="-shared -Xlinker -x" SHLIB_LINKER="${MT_CC} -shared" TXLIBS="/usr/lib/libcurses.a" - XCFLAGS="-O2" + XCFLAGS="" YACC="yacc" ;; -- 2.39.5