1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

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++.
This commit is contained in:
Jon Trulson 2021-12-13 12:56:15 -07:00
parent a5a2d937cb
commit e7d657c376

View file

@ -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