mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
Clarify the role of XCFLAGS and simplify MT_CFLAGS
Tidy up the build system by making it clear that XCFLAGS is included for every build type. Also clean up MT_CFLAGS so that it doesn't statically include XCFLAGS, and remove the common AFS_PTHREAD_ENV define that's needed by every architecture. This fixes the problem that we had where directories built with the pthread or shared build rules weren't being compiled with checking enabled, as well as hopefully making the tangle of defines easier to understand. Change-Id: Ied6dd316147ee88dc7814f8937a204ef32c6c5e0 Reviewed-on: http://gerrit.openafs.org/4171 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
ffad100153
commit
67f01c2553
@ -468,7 +468,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'
|
||||
|
@ -143,13 +143,14 @@ SHELL = /bin/sh
|
||||
COMMON_INCL=$(MODULE_INCLUDE) -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} \
|
||||
-I${srcdir} -I.
|
||||
|
||||
COMMON_CFLAGS=$(CFLAGS) ${DBG} ${OPTMZ} ${COMMON_INCL} ${INCLUDE_LIBINTL} \
|
||||
$(CPPFLAGS_roken)
|
||||
COMMON_CFLAGS=$(CFLAGS) ${DBG} ${OPTMZ} $(XCFLAGS) \
|
||||
${COMMON_INCL} ${INCLUDE_LIBINTL} \
|
||||
$(CPPFLAGS_roken) $(ARCHFLAGS)
|
||||
|
||||
COMMON_LDFLAGS=$(LDFLAGS) $(LDFLAGS_hcrypto) $(LDFLAGS_roken) $(DBG) $(OPTMZ)
|
||||
|
||||
# LWP Flags
|
||||
LWP_CFLAGS=$(COMMON_CFLAGS) $(MODULE_CFLAGS) $(XCFLAGS) $(ARCHFLAGS)
|
||||
LWP_CFLAGS=$(COMMON_CFLAGS) $(MODULE_CFLAGS)
|
||||
LWP_LDFLAGS=$(COMMON_LDFLAGS) $(MODULE_LDFLAGS) $(XLDFLAGS) $(ARCHFLAGS)
|
||||
LWP_CCRULE=$(CCOBJ) $(LWP_CFLAGS) $(CFLAGS_$(@)) -o $@ -c
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user