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}
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to