Module Name: src
Committed By: christos
Date: Wed Apr 3 21:37:58 UTC 2019
Modified Files:
src/libexec/ld.elf_so: Makefile
Log Message:
Disable optimization for rtld.c on the vax with gcc-7.
To generate a diff of this commit:
cvs rdiff -u -r1.140 -r1.141 src/libexec/ld.elf_so/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/ld.elf_so/Makefile
diff -u src/libexec/ld.elf_so/Makefile:1.140 src/libexec/ld.elf_so/Makefile:1.141
--- src/libexec/ld.elf_so/Makefile:1.140 Thu Dec 27 13:58:14 2018
+++ src/libexec/ld.elf_so/Makefile Wed Apr 3 17:37:58 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.140 2018/12/27 18:58:14 christos Exp $
+# $NetBSD: Makefile,v 1.141 2019/04/03 21:37:58 christos Exp $
#
# NOTE: when changing ld.so, ensure that ldd still compiles.
#
@@ -124,6 +124,10 @@ CPPFLAGS+= -DRTLD_DEFAULT_LIBRARY_PATH=\
COPTS.rtld.c+= -Wno-stack-protector
COPTS.symbol.c+=-Wno-stack-protector
+.if ${MACHINE_CPU} == "vax"
+COPTS.rtld.c+= -O0
+.endif
+
LDADD+= -Wl,--version-script=${.CURDIR}/symbols.map
LDADD+= -L${CLIBOBJ} -L${DESTDIR}${LIBDIR}
.if ${MKPICLIB} != "no"