mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
libuafs: Add $(XCFLAGS) to CFLAGS on all platforms
Only darwin had $(XCFLAGS) in the libuafs build for some reason. Add it to all platforms, so they get e.g. -Wall if so configured. Change-Id: Ifab39af3abf087932feb1b9085ccb26baaec3164 Reviewed-on: http://gerrit.openafs.org/1745 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
6b549bdba6
commit
830cb48cbd
@ -16,7 +16,7 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
|
||||
# System specific build commands and flags
|
||||
DEFINES= -DKERNEL -DUKERNEL
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG}
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG} $(XCFLAGS)
|
||||
AR = /usr/bin/ar
|
||||
ARFLAGS = -r
|
||||
RANLIB = /bin/ranlib
|
||||
@ -25,7 +25,7 @@ DEF_LIBPATH=/usr/lib/threads:/usr/lib:/lib
|
||||
EXPFILE=../nsafslib.exp
|
||||
LD_FLAGS=-bM:SRE -bE:$(EXPFILE) -berok -bnoentry -blibpath:$(DEF_LIBPATH)
|
||||
|
||||
TEST_CFLAGS=-DAFS_PTHREAD_ENV -Daix -DAFS_AIX_ENV
|
||||
TEST_CFLAGS=-DAFS_PTHREAD_ENV -Daix -DAFS_AIX_ENV $(XCFLAGS)
|
||||
TEST_LDFLAGS=
|
||||
TEST_LIBS=-lm -lpthreads
|
||||
|
||||
|
@ -13,11 +13,11 @@ include @TOP_OBJDIR@/src/config/Makefile.config
|
||||
CC = @CC@
|
||||
DEFINES= -D_REENTRANT -DKERNEL -DUKERNEL
|
||||
KOPTS=
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG}
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG} $(XCFLAGS)
|
||||
OPTF=-O
|
||||
# WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
|
||||
|
||||
TEST_CFLAGS=-D_REENTRANT -DAFS_PTHREAD_ENV -DAFS_DFFBSD_ENV
|
||||
TEST_CFLAGS=-D_REENTRANT -DAFS_PTHREAD_ENV -DAFS_DFFBSD_ENV $(XCFLAGS)
|
||||
TEST_LDFLAGS=
|
||||
TEST_LIBS=-lpthread
|
||||
<all>
|
||||
|
@ -17,10 +17,10 @@ DEFINES=-DKERNEL -DUKERNEL -D_NO_PROTO -DOSF
|
||||
KOPTS=
|
||||
DBG=
|
||||
OPTF=-O
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG} -pthread
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG} $(XCFLAGS) -pthread
|
||||
WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
|
||||
|
||||
TEST_CFLAGS=-pthread -D_NO_PROTO -D_REENTRANT -DAFS_PTHREAD_ENV -Dosf -DAFS_OSF_ENV -DOSF
|
||||
TEST_CFLAGS=-pthread -D_NO_PROTO -D_REENTRANT -DAFS_PTHREAD_ENV -Dosf -DAFS_OSF_ENV -DOSF $(XCFLAGS)
|
||||
TEST_LDFLAGS=-pthread
|
||||
TEST_LIBS=-lm
|
||||
|
||||
|
@ -17,11 +17,11 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
CC = @CC@
|
||||
DEFINES= -D_REENTRANT -DKERNEL -DUKERNEL
|
||||
KOPTS=
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG}
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG} $(XCFLAGS)
|
||||
OPTF=-O
|
||||
# WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
|
||||
|
||||
TEST_CFLAGS=-D_REENTRANT -DAFS_PTHREAD_ENV -DAFS_FBSD40_ENV
|
||||
TEST_CFLAGS=-D_REENTRANT -DAFS_PTHREAD_ENV -DAFS_FBSD40_ENV $(XCFLAGS)
|
||||
TEST_LDFLAGS=
|
||||
<all -i386_fbsd_62 -i386_fbsd_70 -i386_fbsd_71 -i386_fbsd_80 -amd64_fbsd_62 -amd64_fbsd_70 -amd64_fbsd_71 -amd64_fbsd_80>
|
||||
TEST_LIBS=-lc_r
|
||||
|
@ -20,12 +20,12 @@ KOPTS=-Wp,-H200000 -Wl,-a,archive +DA1.0 +z
|
||||
<ia64_hpux1122 ia64_hpux1123>
|
||||
KOPTS=-Wp,-H200000 -Wl,-a,archive_shared
|
||||
<all>
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG}
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG} $(XCFLAGS)
|
||||
OPTF=-O
|
||||
WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
|
||||
|
||||
<hp_ux102 hp_ux110 hp_ux11i>
|
||||
TEST_CFLAGS= -Wp,-H200000 +DA1.0 +z -D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV -Dhpux -DAFS_HPUX_ENV
|
||||
TEST_CFLAGS= -Wp,-H200000 +DA1.0 +z -D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV -Dhpux -DAFS_HPUX_ENV $(XCFLAGS)
|
||||
<ia64_hpux1122 ia64_hpux1123>
|
||||
TEST_CFLAGS= -Wp,-H200000 -D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV -Dhpux -DAFS_HPUX_ENV
|
||||
<all>
|
||||
|
@ -15,11 +15,11 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
# System specific build commands and flags
|
||||
CC = cc
|
||||
DEFINES=-D_SGI_MP_SOURCE -DKERNEL -DUKERNEL
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG}
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG} $(XCFLAGS)
|
||||
OPTF=-O
|
||||
WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
|
||||
|
||||
TEST_CFLAGS=-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV -Dirix -DAFS_SGI_ENV
|
||||
TEST_CFLAGS=-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV -Dirix -DAFS_SGI_ENV $(XCFLAGS)
|
||||
TEST_LDFLAGS=-ignore_minor
|
||||
TEST_LIBS=-lpthread -lm
|
||||
|
||||
|
@ -27,7 +27,7 @@ CFLAGS=-fPIC
|
||||
else
|
||||
CFLAGS=
|
||||
endif
|
||||
CFLAGS+= -I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG}
|
||||
CFLAGS+= -I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG} $(XCFLAGS)
|
||||
OPTF=-O
|
||||
# WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
|
||||
|
||||
|
@ -17,10 +17,10 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
CC = gcc
|
||||
DEFINES= -DKERNEL -DUKERNEL
|
||||
KOPTS=
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG}
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG} $(XCFLAGS)
|
||||
OPTF=-O
|
||||
|
||||
TEST_CFLAGS= -DAFS_NBSD_ENV
|
||||
TEST_CFLAGS= -DAFS_NBSD_ENV $(XCFLAGS)
|
||||
TEST_LDFLAGS=
|
||||
TEST_LIBS=
|
||||
|
||||
|
@ -17,10 +17,10 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
CC = gcc
|
||||
DEFINES= -DKERNEL -DUKERNEL
|
||||
KOPTS=
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG}
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG} $(XCFLAGS)
|
||||
OPTF=-O
|
||||
|
||||
TEST_CFLAGS= -DAFS_OBSD_ENV
|
||||
TEST_CFLAGS= -DAFS_OBSD_ENV $(XCFLAGS)
|
||||
TEST_LDFLAGS=
|
||||
TEST_LIBS=
|
||||
|
||||
|
@ -14,11 +14,11 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
|
||||
# System specific build commands and flags
|
||||
DEFINES= -D_REENTRANT -DKERNEL -DUKERNEL
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG}
|
||||
CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${DBG} $(XCFLAGS)
|
||||
OPTF=-O
|
||||
WEBOPTS = -KPIC -I../nsapi -DNETSCAPE_NSAPI -DSOLARIS -DNET_SSL -DXP_UNIX -DMCC_HTTPD
|
||||
|
||||
TEST_CFLAGS=-mt -DAFS_PTHREAD_ENV -Dsolaris -DAFS_SUN5_ENV
|
||||
TEST_CFLAGS=-mt -DAFS_PTHREAD_ENV -Dsolaris -DAFS_SUN5_ENV $(XCFLAGS)
|
||||
TEST_LDFLAGS=
|
||||
TEST_LIBS=-lsocket -lnsl -lthread -lm -ldl
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user