Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2019 22:06:17 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351497 - in head/sys/modules: linux linux64
Message-ID:  <201908252206.x7PM6HBn024110@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sun Aug 25 22:06:17 2019
New Revision: 351497
URL: https://svnweb.freebsd.org/changeset/base/351497

Log:
  Replace -Werror with ${WERROR} in module builds

Modified:
  head/sys/modules/linux/Makefile
  head/sys/modules/linux64/Makefile

Modified: head/sys/modules/linux/Makefile
==============================================================================
--- head/sys/modules/linux/Makefile	Sun Aug 25 21:14:46 2019	(r351496)
+++ head/sys/modules/linux/Makefile	Sun Aug 25 22:06:17 2019	(r351497)
@@ -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		\

Modified: head/sys/modules/linux64/Makefile
==============================================================================
--- head/sys/modules/linux64/Makefile	Sun Aug 25 21:14:46 2019	(r351496)
+++ head/sys/modules/linux64/Makefile	Sun Aug 25 22:06:17 2019	(r351497)
@@ -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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908252206.x7PM6HBn024110>