From: Andrew Deason Date: Wed, 2 Nov 2011 16:35:42 +0000 (-0500) Subject: Solaris: Specify ARCHFLAGS in CFLAGS X-Git-Tag: openafs-stable-1_8_0pre1~3089 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=5eba97a8960c49aeea957dc94408368e1324eff0 Solaris: Specify ARCHFLAGS in CFLAGS Various autoconf tests which use the C compiler may yield different results depending on whether or not we are compiling for x86 or amd64 on Solaris (different libraries are available, structures may be different, et al). So, set CFLAGS depending on which arch we are targeting, so the autoconf results are more consistent with the actual compilation during the build. Change-Id: I99ddefaabc3bb2e80abe698366b348238d51408d Reviewed-on: http://gerrit.openafs.org/5786 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/cf/osconf.m4 b/src/cf/osconf.m4 index 93b4158..ab64a04 100644 --- a/src/cf/osconf.m4 +++ b/src/cf/osconf.m4 @@ -628,6 +628,7 @@ case $AFS_SYSNAME in fi CC=$SOLARISCC CCOBJ=$SOLARISCC + CFLAGS="$CFLAGS $XARCHFLAGS" LD="/usr/ccs/bin/ld" MT_CC=$SOLARISCC MT_CFLAGS='-mt'