changeset 2946:11fd5cf0ee99

Mac/Unix: Use CXX to link dwtestoo instead of CC. This allowed me to compile dwtestoo with a different C++ compiler than the main library. Getting a crash when compiling the library with GCC 6, but it works with GCC from Xcode. GCC 6 compiles dwtestoo successfully and can use the Xcode GCC compiled library. CC=/usr/bin/gcc CXX=/usr/local/bin/gcc-6
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 02 Jan 2023 03:10:05 +0000
parents 7e7b38472c3d
children edb4307ac7ce
files Makefile.in
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.in	Mon Jan 02 01:44:17 2023 +0000
+++ b/Makefile.in	Mon Jan 02 03:10:05 2023 +0000
@@ -203,7 +203,7 @@
 	$(CXX) -c $(INCPATH) $(CXXFLAGS) $(CCFLAGS) -o $@ $(srcdir)/dwtestoo.cpp
 
 dwtestoo: dwtestoo.o
-	$(CC) -o dwtestoo dwtestoo.o $(MLFLAGS) -l$(TARGET) $(LFLAGS) -lstdc++
+	$(CXX) -o dwtestoo dwtestoo.o $(MLFLAGS) -l$(TARGET) $(LFLAGS) -lstdc++
 	-chmod +x $(srcdir)/mac/finishup.sh
 	-$(srcdir)/mac/finishup.sh $(srcdir) dwtestoo