Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/usr.bin fix stack protector build



details:   https://anonhg.NetBSD.org/src/rev/f36c05a7fd7a
branches:  trunk
changeset: 996700:f36c05a7fd7a
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Feb 06 16:57:30 2019 +0000

description:
fix stack protector build

diffstat:

 external/gpl3/gcc/usr.bin/cc1/Makefile    |  3 ++-
 external/gpl3/gcc/usr.bin/cc1obj/Makefile |  3 ++-
 external/gpl3/gcc/usr.bin/gcov/Makefile   |  4 +++-
 3 files changed, 7 insertions(+), 3 deletions(-)

diffs (52 lines):

diff -r 26e183675926 -r f36c05a7fd7a external/gpl3/gcc/usr.bin/cc1/Makefile
--- a/external/gpl3/gcc/usr.bin/cc1/Makefile    Wed Feb 06 15:43:13 2019 +0000
+++ b/external/gpl3/gcc/usr.bin/cc1/Makefile    Wed Feb 06 16:57:30 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.13 2019/02/01 10:34:18 mrg Exp $
+#      $NetBSD: Makefile,v 1.14 2019/02/06 16:57:30 christos Exp $
 
 PROG=          cc1
 SRCS=          ${G_C_OBJS:S,c-family/,,:S,c/,,:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
@@ -29,6 +29,7 @@
 # LDFLAGS+=    -rdynamic
 
 COPTS.c-ada-spec.c=    -Wno-stack-protector
+COPTS.c-attribs.c=     -Wno-stack-protector
 COPTS.c-aux-info.c=    -Wno-stack-protector
 COPTS.c-common.c=      -Wno-stack-protector
 COPTS.c-cppbuiltin.c=  -Wno-stack-protector
diff -r 26e183675926 -r f36c05a7fd7a external/gpl3/gcc/usr.bin/cc1obj/Makefile
--- a/external/gpl3/gcc/usr.bin/cc1obj/Makefile Wed Feb 06 15:43:13 2019 +0000
+++ b/external/gpl3/gcc/usr.bin/cc1obj/Makefile Wed Feb 06 16:57:30 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.11 2019/02/01 10:34:18 mrg Exp $
+#      $NetBSD: Makefile,v 1.12 2019/02/06 16:57:30 christos Exp $
 
 MYOBJS=                ${G_OBJC_OBJS} ${G_C_AND_OBJC_OBJS} 
 PROG=          cc1obj
@@ -32,6 +32,7 @@
 # LDFLAGS+=    -rdynamic
 
 COPTS.c-ada-spec.c+=                   -Wno-stack-protector
+COPTS.c-attribs.c+=                    -Wno-stack-protector
 COPTS.c-aux-info.c+=                   -Wno-stack-protector
 COPTS.c-common.c+=                     -Wno-stack-protector
 COPTS.c-cppbuiltin.c+=                 -Wno-stack-protector
diff -r 26e183675926 -r f36c05a7fd7a external/gpl3/gcc/usr.bin/gcov/Makefile
--- a/external/gpl3/gcc/usr.bin/gcov/Makefile   Wed Feb 06 15:43:13 2019 +0000
+++ b/external/gpl3/gcc/usr.bin/gcov/Makefile   Wed Feb 06 16:57:30 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.8 2019/02/01 10:34:18 mrg Exp $
+#      $NetBSD: Makefile,v 1.9 2019/02/06 16:57:30 christos Exp $
 
 .include <bsd.init.mk>
 
@@ -19,6 +19,8 @@
 .include "../Makefile.libiberty"
 .include "../Makefile.libdecnumber"
 
+COPTS.gcov.c += -Wno-stack-protector
+
 LDADD+=                -lintl
 DPADD+=                ${LIBINTL}
 



Home | Main Index | Thread Index | Old Index