NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
re: port-sparc/54660: undefined reference in libsupc++.a on netbsd-9/sparc
The following reply was made to PR port-sparc/54660; it has been noted by GNATS.
From: matthew green <mrg%eterna.com.au@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost,
jdbaker%consolidated.net@localhost
Subject: re: port-sparc/54660: undefined reference in libsupc++.a on netbsd-9/sparc
Date: Sun, 19 Apr 2020 05:00:25 +1000
actually, atomicity.h is properly handled. it's just that sparc
wants it in libsupc++ and it's only in libstdc++.
the hack below may help.
John, i'll see about testing myself, but if you can try a test
(you should only have to reinstall libsupc++.a) that would be
great. thanks.
.mrg.
Index: libsupc++/Makefile
===================================================================
RCS file: /cvsroot/src/external/gpl3/gcc/lib/libsupc++/Makefile,v
retrieving revision 1.12
diff -p -u -r1.12 Makefile
--- libsupc++/Makefile 19 Jan 2019 17:11:02 -0000 1.12
+++ libsupc++/Makefile 18 Apr 2020 18:56:28 -0000
@@ -25,6 +25,15 @@ SHLIB_MINOR= 0
SRCS= ${LIBSUPCXXSRCS} xmalloc.c
CXXFLAGS+= ${G_SECTION_FLAGS}
+# XXX PR#54660
+.if ${MACHINE} == "sparc"
+SRCS+= atomicity.cc
+DIST= ${GCCDIST}
+GLIBCXX_SRCDIR= ${DIST}/libstdc++-v3
+BUILDSYMLINKS+= \
+ ${GLIBCXX_SRCDIR}/${G_ATOMICITY_SRCDIR}/atomicity.h atomicity.cc
+.endif
+
COPTS.cp-demangle.c = -Wno-stack-protector -Wno-unused-function
.include "../Makefile.gthr"
Home |
Main Index |
Thread Index |
Old Index