aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/linux/Makefile
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2019-08-25 22:06:17 +0000
committerWarner Losh <imp@FreeBSD.org>2019-08-25 22:06:17 +0000
commit32e6af4641676362d6605ca66074568299343028 (patch)
treeeacb45745309ff57572920576a899d6e7d1b331b /sys/modules/linux/Makefile
parentb48d4efe750d119d7d5911065e3f5a66150f8c01 (diff)
downloadsrc-32e6af4641676362d6605ca66074568299343028.tar.gz
src-32e6af4641676362d6605ca66074568299343028.zip
Replace -Werror with ${WERROR} in module builds
Notes
Notes: svn path=/head/; revision=351497
Diffstat (limited to 'sys/modules/linux/Makefile')
-rw-r--r--sys/modules/linux/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile
index e2d6d6056c44..6570b8d86e33 100644
--- a/sys/modules/linux/Makefile
+++ b/sys/modules/linux/Makefile
@@ -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 \