Tue Aug 22 11:14:28 2017 UTC ()
Strip .debug_macinfo when converting to a.out, clang may generate it.


(joerg)
diff -r1.1015 -r1.1016 src/share/mk/bsd.own.mk

cvs diff -r1.1015 -r1.1016 src/share/mk/bsd.own.mk (expand / switch to unified diff)

--- src/share/mk/bsd.own.mk 2017/08/16 13:53:54 1.1015
+++ src/share/mk/bsd.own.mk 2017/08/22 11:14:28 1.1016
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: bsd.own.mk,v 1.1015 2017/08/16 13:53:54 tsutsui Exp $ 1# $NetBSD: bsd.own.mk,v 1.1016 2017/08/22 11:14:28 joerg Exp $
2 2
3# This needs to be before bsd.init.mk 3# This needs to be before bsd.init.mk
4.if defined(BSD_MK_COMPAT_FILE) 4.if defined(BSD_MK_COMPAT_FILE)
5.include <${BSD_MK_COMPAT_FILE}> 5.include <${BSD_MK_COMPAT_FILE}>
6.endif 6.endif
7 7
8.if !defined(_BSD_OWN_MK_) 8.if !defined(_BSD_OWN_MK_)
9_BSD_OWN_MK_=1 9_BSD_OWN_MK_=1
10 10
11MAKECONF?= /etc/mk.conf 11MAKECONF?= /etc/mk.conf
12.-include "${MAKECONF}" 12.-include "${MAKECONF}"
13 13
14# 14#
@@ -615,26 +615,27 @@ OBJCOPY_ELF2AOUT_FLAGS?= \ @@ -615,26 +615,27 @@ OBJCOPY_ELF2AOUT_FLAGS?= \
615 -R .SUNW_ctf \ 615 -R .SUNW_ctf \
616 -R .arm.atpcs \ 616 -R .arm.atpcs \
617 -R .comment \ 617 -R .comment \
618 -R .debug_abbrev \ 618 -R .debug_abbrev \
619 -R .debug_aranges \ 619 -R .debug_aranges \
620 -R .debug_info \ 620 -R .debug_info \
621 -R .debug_line \ 621 -R .debug_line \
622 -R .debug_frame \ 622 -R .debug_frame \
623 -R .debug_loc \ 623 -R .debug_loc \
624 -R .debug_pubnames \ 624 -R .debug_pubnames \
625 -R .debug_pubtypes \ 625 -R .debug_pubtypes \
626 -R .debug_ranges \ 626 -R .debug_ranges \
627 -R .debug_str \ 627 -R .debug_str \
 628 -R .debug_macinfo \
628 -R .eh_frame \ 629 -R .eh_frame \
629 -R .note.netbsd.ident 630 -R .note.netbsd.ident
630.endif 631.endif
631 632
632# 633#
633# Targets to check if DESTDIR or RELEASEDIR is provided 634# Targets to check if DESTDIR or RELEASEDIR is provided
634# 635#
635.if !target(check_DESTDIR) 636.if !target(check_DESTDIR)
636check_DESTDIR: .PHONY .NOTMAIN 637check_DESTDIR: .PHONY .NOTMAIN
637.if !defined(DESTDIR) 638.if !defined(DESTDIR)
638 @echo "setenv DESTDIR before doing that!" 639 @echo "setenv DESTDIR before doing that!"
639 @false 640 @false
640.else 641.else