diff options
| author | christos <christos@NetBSD.org> | 2019-04-03 21:37:58 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2019-04-03 21:37:58 +0000 |
| commit | 595da914477dc0bda49e7c2dfb1d6dfaaab9f92a (patch) | |
| tree | c141a1c73b00960b34fe877929dd1ea309e8aa43 /libexec | |
| parent | e33b563d0376ab078c866be22d1169de581612f1 (diff) | |
Disable optimization for rtld.c on the vax with gcc-7.
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/ld.elf_so/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libexec/ld.elf_so/Makefile b/libexec/ld.elf_so/Makefile index 776f637dee7..80efa6cc3a2 100644 --- a/libexec/ld.elf_so/Makefile +++ b/libexec/ld.elf_so/Makefile @@ -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=\"${SHLIBDIR}:${LIBDIR}\" 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" |
