From e7d657c376d03f422b06303161c3efc31017b799 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Mon, 13 Dec 2021 12:56:15 -0700 Subject: [PATCH] libtt: remove hardcoded -lstdc++ used to build TT library Hardcoding a -lstdc++ is wrong, since not all OSs are likely to handle C++ in the same way. The issue is that libtt needs to be built as a C++ library, so we use a fake dummy.cxx file to convince libtool to do so instead, rather than trying to force the issue by linking a (possibly missing) libstdc++. --- cde/lib/tt/lib/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cde/lib/tt/lib/Makefile.am b/cde/lib/tt/lib/Makefile.am index 8bfc00261..b3a506ca7 100644 --- a/cde/lib/tt/lib/Makefile.am +++ b/cde/lib/tt/lib/Makefile.am @@ -11,10 +11,13 @@ else libtt_la_SOURCES = endif +# fake things so libtool creates this as a C++ library +nodist_EXTRA_libtt_la_SOURCES = dummy.cxx libtt_la_LIBADD = api/c/libapi.la api/dnd/libdnd.la db/libdb.la mp/libmp.la \ - util/libutil.la tttk/libtttk.la -lstdc++ + util/libutil.la tttk/libtttk.la if SOLARIS +# This stuff should be figured out by configure libtt_la_LIBADD += -lnsl -lsocket -lintl -ldl -lc -lw endif