]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
OpenBSD: allow code optimization to be turned off
authorAntoine Verheijen <antoine@ualberta.ca>
Mon, 8 Feb 2010 21:44:55 +0000 (14:44 -0700)
committerDerrick Brashear <shadow|account-1000005@unknown>
Tue, 9 Feb 2010 02:33:04 +0000 (18:33 -0800)
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 <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/cf/osconf.m4

index 29d5649c409d67cb149f82c4a8c019bfa565d015..4beb6ff750c598d92aa4338f9163f046f2dcdd88 100644 (file)
@@ -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"
                ;;