]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Solaris: Specify ARCHFLAGS in CFLAGS
authorAndrew Deason <adeason@sinenomine.net>
Wed, 2 Nov 2011 16:35:42 +0000 (11:35 -0500)
committerDerrick Brashear <shadow@dementix.org>
Sun, 20 Nov 2011 23:38:11 +0000 (15:38 -0800)
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.

Reviewed-on: http://gerrit.openafs.org/5786
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit 5eba97a8960c49aeea957dc94408368e1324eff0)

Change-Id: Idd0f7d2220ae9762af60e96d087e7eb7ee8c0e63
Reviewed-on: http://gerrit.openafs.org/6086
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/cf/osconf.m4

index efe2fa7eadc75a8e62703d6069da5da0cb8b2d5d..a42d33b2497c5ff9ed8317979a7322b13b1e1a82 100644 (file)
@@ -688,6 +688,7 @@ case $AFS_SYSNAME in
        sunx86_510)
                CC=$SOLARISCC
                CCOBJ=$SOLARISCC
+               CFLAGS="$CFLAGS $XARCHFLAGS"
                LD="/usr/ccs/bin/ld"
                MT_CC=$SOLARISCC
                MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'