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



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