Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/dist/gcc/config PR 51266, PR 52326: Fix GC...
details: https://anonhg.NetBSD.org/src/rev/bea5f5151473
branches: trunk
changeset: 355219:bea5f5151473
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Jul 19 13:10:28 2017 +0000
description:
PR 51266, PR 52326: Fix GCC specs to always default to -shared-libgcc,
except on Sun2, which just uses plain -lgcc.
diffstat:
external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h | 1 +
external/gpl3/gcc/dist/gcc/config/netbsd-elf.h | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
diffs (23 lines):
diff -r 7e94f8317634 -r bea5f5151473 external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h Wed Jul 19 10:26:09 2017 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h Wed Jul 19 13:10:28 2017 +0000
@@ -82,6 +82,7 @@
/* NetBSD/sun2 does not support shlibs, avoid using libgcc_pic. */
#if TARGET_DEFAULT_CPU == 0
#undef REAL_LIBGCC_SPEC
+#define REAL_LIBGCC_SPEC "-lgcc"
#endif
#define NETBSD_ENTRY_POINT "_start"
diff -r 7e94f8317634 -r bea5f5151473 external/gpl3/gcc/dist/gcc/config/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h Wed Jul 19 10:26:09 2017 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h Wed Jul 19 13:10:28 2017 +0000
@@ -113,3 +113,8 @@
#undef TARGET_UNWIND_TABLES_DEFAULT
#define TARGET_UNWIND_TABLES_DEFAULT true
+
+#undef REAL_LIBGCC_SPEC
+#define REAL_LIBGCC_SPEC \
+ "%{static|static-libgcc:-lgcc}" \
+ "%{!static:%{!static-libgcc:--as-needed -lgcc_s --no-as-needed -lgcc}}"
Home |
Main Index |
Thread Index |
Old Index