From c35c337aa18b56a837a8722df7ac61ac3d2c0e5f Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Mon, 12 Mar 2012 00:48:04 +0000 Subject: [PATCH] When linking against libtt (a C++ lib) the link stage should use the C++ linker --- cde/programs/dtcalc/Imakefile | 6 ++++++ cde/programs/dtpad/Imakefile | 6 ++++++ cde/programs/dtscreen/Imakefile | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/cde/programs/dtcalc/Imakefile b/cde/programs/dtcalc/Imakefile index 85413ff1..17823c26 100644 --- a/cde/programs/dtcalc/Imakefile +++ b/cde/programs/dtcalc/Imakefile @@ -31,6 +31,12 @@ SYS_LIBRARIES = -lm -lgen #if defined(HPOSFArchitecture) #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 = calctool.c ds_common.c ds_popup.c \ ds_widget.c ds_xlib.c functions.c \ help.c motif.c mp.c \ diff --git a/cde/programs/dtpad/Imakefile b/cde/programs/dtpad/Imakefile index c4affc35..4e34b138 100644 --- a/cde/programs/dtpad/Imakefile +++ b/cde/programs/dtpad/Imakefile @@ -11,6 +11,12 @@ SYS_LIBRARIES = DtClientSysLibs DtClientExtraLibs # LOCAL_LDFLAGS = -M mapfile.reorder #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 = \ dtpad.c editCB.c fileCB.c \ fileDlg.c fileIo.c formatCB.c \ diff --git a/cde/programs/dtscreen/Imakefile b/cde/programs/dtscreen/Imakefile index 33800065..b011791d 100644 --- a/cde/programs/dtscreen/Imakefile +++ b/cde/programs/dtscreen/Imakefile @@ -11,6 +11,12 @@ LOCAL_LIBRARIES = $(DTSVCLIB) $(TTLIB) $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) SYS_LIBRARIES = -lm -lcrypt #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 = blank.c dtscreen.c flame.c hopalong.c \ hsbramp.c image.c life.c pyro.c \ qix.c resource.c rotor.c swarm.c \ -- 2.25.1