From: Antoine Verheijen Date: Mon, 8 Feb 2010 21:44:55 +0000 (-0700) Subject: OpenBSD: allow code optimization to be turned off X-Git-Tag: openafs-stable-1_4_12pre3~9 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e10957c01d0e2eadcea7cc49be9b5f7ed9beefe6;p=packages%2Fo%2Fopenafs.git 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 --- 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" ;;