From: Peter Howkins Date: Mon, 12 Mar 2012 10:38:42 +0000 (+0000) Subject: On Linux when linking against a C++ library the whole program must be linked X-Git-Tag: 2.2.0a~26^2~113 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f972ee1646a334957e833b44f4209847d9367b8c;p=oweals%2Fcde.git On Linux when linking against a C++ library the whole program must be linked with the C++ linker. --- diff --git a/cde/programs/dtfile/Imakefile b/cde/programs/dtfile/Imakefile index 468f238e..9eda8cff 100644 --- a/cde/programs/dtfile/Imakefile +++ b/cde/programs/dtfile/Imakefile @@ -27,6 +27,12 @@ EXTRA_DEFINES = -D_TOOLTALK EXTRA_CCOPTIONS = -xF #endif +XCOMM On Linux once you link against a C++ library the whole program +XCOMM has to be linked with the C++ linker +#if defined(LinuxDistribution) +CCLINK = $(CXX) +#endif + SRCS = ChangeDir.c ChangeDirP.c Command.c Common.c \ Desktop.c Directory.c Encaps.c File.c \ FileDialog.c FileManip.c FileMgr.c FileOp.c \ diff --git a/cde/programs/dtfile/dtcopy/Imakefile b/cde/programs/dtfile/dtcopy/Imakefile index 31475b21..6da100b9 100644 --- a/cde/programs/dtfile/dtcopy/Imakefile +++ b/cde/programs/dtfile/dtcopy/Imakefile @@ -10,6 +10,12 @@ SYS_LIBRARIES = DtClientSysLibs DtClientExtraLibs EXTRA_CCOPTIONS = -xF #endif +XCOMM On Linux once you link against a C++ library the whole program +XCOMM has to be linked with the C++ linker +#if defined(LinuxDistribution) +CCLINK = $(CXX) +#endif + SRCS = main_dtcopy.c copydialog.c overwrtdialog.c dosync.c \ fsrtns.c utils.c errordialog.c sharedFuncs.c