DARWIN: make ARCHFLAGS propagate to shlibs

in order that configure not expand ARCHFLAGS (so we can override from
shell) escape the variable.

Change-Id: I9d5c3f4cc58c66be7ffefbd134ba476673be6ea8
Reviewed-on: http://gerrit.openafs.org/3562
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Derrick Brashear 2010-12-21 08:57:05 -05:00
parent b1cb3607ff
commit 9de81541aa

View File

@ -399,7 +399,7 @@ case $AFS_SYSNAME in
REGEX_OBJ="regex.o"
XCFLAGS="-no-cpp-precomp"
EXTRA_VLIBOBJS="fstab.o"
SHLIB_LINKER="${MT_CC} ${ARCHFLAGS} -dynamiclib"
SHLIB_LINKER="${MT_CC} \${ARCHFLAGS} -dynamiclib"
SHLIB_SUFFIX="dylib"
XLIBS="${LIB_AFSDB} ${XBSA_XLIBS} -framework CoreFoundation"
;;
@ -409,7 +409,7 @@ case $AFS_SYSNAME in
CCOBJ="cc"
MT_CC="cc"
AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration -framework SystemConfiguration -framework IOKit -framework CoreFoundation"
MT_CFLAGS='-DAFS_PTHREAD_ENV -D_REENTRANT ${XCFLAGS} ${ARCHFLAGS}'
MT_CFLAGS="-DAFS_PTHREAD_ENV -D_REENTRANT ${XCFLAGS} \${ARCHFLAGS}"
KROOT=
KINCLUDES='-I$(KROOT)/System/Library/Frameworks/Kernel.framework/Headers'
KERN_OPTMZ="-Os"
@ -417,7 +417,7 @@ case $AFS_SYSNAME in
OPTMZ="-Os"
REGEX_OBJ="regex.o"
EXTRA_VLIBOBJS="fstab.o"
SHLIB_LINKER="${MT_CC} ${ARCHFLAGS} -dynamiclib"
SHLIB_LINKER="${MT_CC} \${ARCHFLAGS} -dynamiclib"
SHLIB_SUFFIX="dylib"
RANLIB="ranlib -c"
XLIBS="${LIB_AFSDB} ${XBSA_XLIBS} -framework CoreFoundation"
@ -425,7 +425,7 @@ case $AFS_SYSNAME in
*_darwin_90)
AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration -framework SystemConfiguration -framework IOKit -framework CoreFoundation"
MT_CFLAGS='-DAFS_PTHREAD_ENV -D_REENTRANT ${XCFLAGS} ${ARCHFLAGS}'
MT_CFLAGS="-DAFS_PTHREAD_ENV -D_REENTRANT ${XCFLAGS} \${ARCHFLAGS}"
KROOT=
KINCLUDES='-I$(KROOT)/System/Library/Frameworks/Kernel.framework/Headers'
LD="cc"
@ -434,7 +434,7 @@ case $AFS_SYSNAME in
OPTMZ="-Os"
REGEX_OBJ="regex.o"
EXTRA_VLIBOBJS="fstab.o"
SHLIB_LINKER="${MT_CC} ${ARCHFLAGS} -dynamiclib"
SHLIB_LINKER="${MT_CC} \${ARCHFLAGS} -dynamiclib"
SHLIB_SUFFIX="dylib"
RANLIB="ranlib -c"
XLIBS="${LIB_AFSDB} ${XBSA_XLIBS} -framework CoreFoundation"
@ -442,7 +442,7 @@ case $AFS_SYSNAME in
*_darwin_100)
AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration -framework SystemConfiguration -framework IOKit -framework CoreFoundation"
MT_CFLAGS='-DAFS_PTHREAD_ENV -D_REENTRANT ${XCFLAGS} ${ARCHFLAGS}'
MT_CFLAGS="-DAFS_PTHREAD_ENV -D_REENTRANT ${XCFLAGS} \${ARCHFLAGS}"
MT_LIBS='${XLIBS}'
KROOT=
KINCLUDES='-I$(KROOT)/System/Library/Frameworks/Kernel.framework/Headers'
@ -453,7 +453,7 @@ case $AFS_SYSNAME in
PAM_LIBS="-lpam"
REGEX_OBJ="regex.o"
EXTRA_VLIBOBJS="fstab.o"
SHLIB_LINKER="${MT_CC} ${ARCHFLAGS} -dynamiclib"
SHLIB_LINKER="${MT_CC} \${ARCHFLAGS} -dynamiclib"
SHLIB_SUFFIX="dylib"
RANLIB="ranlib"
XLIBS="${LIB_AFSDB} ${XBSA_XLIBS} -framework CoreFoundation"