Module Name: src
Committed By: christos
Date: Wed Jan 18 12:28:55 UTC 2023
Modified Files:
src/sys/arch/i386/stand: Makefile.booters
Log Message:
Fix the clang build by setting -z noseparate-code
To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/sys/arch/i386/stand/Makefile.booters
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/i386/stand/Makefile.booters
diff -u src/sys/arch/i386/stand/Makefile.booters:1.94 src/sys/arch/i386/stand/Makefile.booters:1.95
--- src/sys/arch/i386/stand/Makefile.booters:1.94 Sun Sep 6 03:20:28 2020
+++ src/sys/arch/i386/stand/Makefile.booters Wed Jan 18 07:28:54 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.booters,v 1.94 2020/09/06 07:20:28 mrg Exp $
+# $NetBSD: Makefile.booters,v 1.95 2023/01/18 12:28:54 christos Exp $
NOLIBCSANITIZER=
NOSANITIZER=
@@ -77,7 +77,7 @@ cleandir distclean: .WAIT cleanlibdir
cleanlibdir:
-rm -rf lib
-LDFLAGS+=-Wl,-M -Wl,-e,start # -N does not work properly.
+LDFLAGS+=-Wl,-z,noseparate-code -Wl,-M -Wl,-e,start # -N does not work properly.
LIBLIST=${LIBI386} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} ${LIBI386} ${LIBSA}