# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1672629005 0 # Node ID 11fd5cf0ee99d1ca3eb372242c95ccc40b1f41fd # Parent 7e7b38472c3d1f66b55444aba50e1b15e30efee8 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 diff -r 7e7b38472c3d -r 11fd5cf0ee99 Makefile.in --- 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