SHLIB_SUFFIX="so"
CCOBJ="\$(CC)"
MT_CC="\$(CC)"
-XLIBS="${LIB_AFSDB} ${XBSA_XLIBS} ${LIB_libintl}"
+XLIBS="${LIB_AFSDB} ${LIB_libintl}"
MT_LIBS='-lpthread ${XLIBS}'
XCFLAGS=
AC_CHECK_PROGS(LD, ld, [${am_missing_run}ld])
AC_CHECK_PROGS(CP, cp, [${am_missing_run}cp])
AC_CHECK_PROGS(STRIP, strip, [${am_missing_run}strip])
-AC_CHECK_PROGS(LORDER, lorder, [${am_missing_run}lorder])
AC_CHECK_PROGS(GENCAT, gencat, [${am_missing_run}gencat])
dnl TODO - need to disable STRIP if we are doing debugging in any user space code
SHLIB_LINKER="${CC} -shared"
;;
- arm_linux_24 | arm_linux26)
+ arm_linux_24 | arm_linux26 | arm64_linux26)
CCOBJ="\$(CC) -fPIC"
MT_CFLAGS='-pthread -D_REENTRANT'
PAM_OPTMZ=-O2
XCFLAGS="-pipe"
;;
- ia64_linux24|ia64_linux26)
+ ia64_linux26)
KERN_OPTMZ=-O2
MT_CFLAGS='-pthread -D_REENTRANT'
PAM_OPTMZ=-O2
SHLIB_LINKER="${CC} -shared"
;;
- ppc64_linux24 | ppc64_linux26)
+ ppc64_linux26)
MT_CFLAGS='-pthread -D_REENTRANT'
PAM_OPTMZ=-O2
PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
SHLIB_LINKER="${CC} -shared"
;;
- i386_umlinux22 | i386_umlinux24 | i386_umlinux26)
+ i386_umlinux26)
MT_CFLAGS='-pthread -D_REENTRANT'
DBG=-g
LWP_DBG=-g
XCFLAGS=
;;
- parisc_linux24)
- KERN_OPTMZ=-O2
- MT_CFLAGS='-pthread -D_REENTRANT'
- PAM_OPTMZ=-O2
- PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LDFLAGS="-shared -Xlinker -x"
- SHLIB_LINKER="${CC} -shared"
- ;;
-
ppc_darwin_70)
CC="cc"
AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration -framework SystemConfiguration -framework IOKit -framework CoreFoundation"
EXTRA_VLIBOBJS="fstab.o"
SHLIB_LINKER="${CC} \${ARCHFLAGS} -dynamiclib"
SHLIB_SUFFIX="dylib"
- XLIBS="${LIB_AFSDB} ${XBSA_XLIBS} -framework CoreFoundation"
+ XLIBS="${LIB_AFSDB} -framework CoreFoundation"
;;
*_darwin_80)
SHLIB_LINKER="${CC} \${ARCHFLAGS} -dynamiclib"
SHLIB_SUFFIX="dylib"
RANLIB="ranlib -c"
- XLIBS="${LIB_AFSDB} ${XBSA_XLIBS} -framework CoreFoundation"
+ XLIBS="${LIB_AFSDB} -framework CoreFoundation"
;;
*_darwin_90)
SHLIB_LINKER="${CC} \${ARCHFLAGS} -dynamiclib"
SHLIB_SUFFIX="dylib"
RANLIB="ranlib -c"
- XLIBS="${LIB_AFSDB} ${XBSA_XLIBS} -framework CoreFoundation"
+ XLIBS="${LIB_AFSDB} -framework CoreFoundation"
;;
arm_darwin_100)
SHLIB_LINKER="${CC} -dynamiclib"
SHLIB_SUFFIX="dylib"
RANLIB="ranlib"
- XLIBS="${LIB_AFSDB} ${XBSA_XLIBS} -framework CoreFoundation"
+ XLIBS="${LIB_AFSDB} -framework CoreFoundation"
;;
- *_darwin_100 | *_darwin_110 | *_darwin_120 | *_darwin_130 )
+ *_darwin_100 | *_darwin_110 | *_darwin_120 | *_darwin_130 | *_darwin_140 | *_darwin_150 | *_darwin_160 | *_darwin_170)
AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration -framework SystemConfiguration -framework IOKit -framework CoreFoundation"
MT_CFLAGS="-D_REENTRANT"
MT_LIBS='${XLIBS}'
SHLIB_LINKER="${CC} \${ARCHFLAGS} -dynamiclib"
SHLIB_SUFFIX="dylib"
RANLIB="ranlib"
- XLIBS="${LIB_AFSDB} ${XBSA_XLIBS} -framework CoreFoundation"
+ XLIBS="${LIB_AFSDB} -framework CoreFoundation"
;;
ppc_linux*)
AIX64="yes"
;;
- s390_linux22|s390_linux24|s390_linux26)
+ s390_linux26)
LD="ld"
KERN_OPTMZ=-O2
MT_CFLAGS='-pthread -D_REENTRANT'
SHLIB_LINKER="${CC} -shared"
;;
- s390x_linux24|s390x_linux26)
+ s390x_linux26)
CCOBJ="\$(CC) -fPIC"
LD="ld"
KERN_OPTMZ=-O2
CFLAGS="$CFLAGS ${XARCHFLAGS}"
LD="/usr/ccs/bin/ld"
MT_CFLAGS='-mt'
+ KERN_OPTMZ="-xO3"
PAM_CFLAGS="-KPIC"
PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
SHLIB_CFLAGS="-KPIC"
AS_CASE([$AFS_SYSNAME],
[sunx86_510|sunx86_511],
dnl Somewhere around Solaris Studio 12.*, the compiler started adding SSE
- dnl instructions to optimized code, without any ability to turn it off.
- dnl So just default to not optimizing kernel code for the relevant
- dnl platforms, until we get a better autoconf test for this.
- [enable_optimize_kernel=no],
+ dnl instructions to optimized code, without any known way to turn it off.
+ dnl To cope, this condition was added to change the default to
+ dnl 'no'.
+ dnl Now that we have an autoconf test to allow disabling the SSE
+ dnl optimizations, it's safe to once more default to 'yes' here.
+ [enable_optimize_kernel=yes],
[enable_optimize_kernel=yes])
fi
fi
CFLAGS_NOERROR=
-CFLAGS_NOSTRICT=
+CFLAGS_NOSTRICT=-fno-strict-aliasing
CFLAGS_NOUNUSED=
CFLAGS_NOOLDSTYLE=
XCFLAGS_NOCHECKING="$XCFLAGS"
XCFLAGS="${XCFLAGS} -Wall -Wstrict-prototypes -Wold-style-definition -Werror -fdiagnostics-show-option -Wpointer-arith"
if test "x$enable_checking" != "xall"; then
CFLAGS_NOERROR="-Wno-error"
- CFLAGS_NOSTRICT="-fno-strict-aliasing"
CFLAGS_NOUNUSED="-Wno-unused"
CFLAGS_NOOLDSTYLE="-Wno-old-style-definition"
AC_DEFINE(IGNORE_SOME_GCC_WARNINGS, 1, [define to disable some gcc warnings in warnings-as-errors mode])
+ else
+ CFLAGS_NOSTRICT=
fi
fi
else