Replace -Werror with ${WERROR} in module builds
This commit is contained in:
parent
b48d4efe75
commit
32e6af4641
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351497
@ -55,7 +55,7 @@ linux${SFX}_assym.h: linux${SFX}_genassym.o
|
||||
|
||||
linux${SFX}_locore.o: linux${SFX}_assym.h assym.inc
|
||||
${CC} -x assembler-with-cpp -DLOCORE -m32 -shared -s \
|
||||
-pipe -I. -I${SYSDIR} -Werror -Wall -fno-common -nostdinc -nostdlib \
|
||||
-pipe -I. -I${SYSDIR} ${WERROR} -Wall -fno-common -nostdinc -nostdlib \
|
||||
-fno-omit-frame-pointer -fPIC \
|
||||
-Wl,-T${SRCTOP}/sys/${MACHINE_CPUARCH}/linux${SFX}/${VDSO}.lds.s \
|
||||
-Wl,-soname=${VDSO}.so.1,--eh-frame-hdr,-warn-common \
|
||||
|
@ -31,7 +31,7 @@ linux_assym.h: linux_genassym.o
|
||||
|
||||
linux_locore.o: linux_locore.asm linux_assym.h
|
||||
${CC} -x assembler-with-cpp -DLOCORE -shared -mcmodel=small \
|
||||
-pipe -I. -I${SYSDIR} -Werror -Wall -fno-common -fPIC -nostdinc \
|
||||
-pipe -I. -I${SYSDIR} ${WERROR} -Wall -fno-common -fPIC -nostdinc \
|
||||
-Wl,-T${SRCTOP}/sys/${MACHINE}/linux/${VDSO}.lds.s \
|
||||
-Wl,-soname=${VDSO}.so.1,-warn-common -nostdlib \
|
||||
${.IMPSRC} -o ${.TARGET}
|
||||
|
Loading…
Reference in New Issue
Block a user