X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/367e57ec9b921d7523c1ac3e9e3477850aaf3c66..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/samples/richedit/makefile.unx?ds=inline

diff --git a/samples/richedit/makefile.unx b/samples/richedit/makefile.unx
index bd016fe74a..604ae36065 100644
--- a/samples/richedit/makefile.unx
+++ b/samples/richedit/makefile.unx
@@ -2,7 +2,7 @@
 # Created: 2000-03-14
 # hand hacked from template file by Ron <ron@debian.org>
 
-CC = gcc
+CXX = $(shell wx-config --cxx)
 
 PROGRAM = wxLayout
 
@@ -13,10 +13,10 @@ OBJECTS = $(PROGRAM).o kbList.o wxllist.o wxlparser.o wxlwindow.o
 .SUFFIXES:	.o .cpp
 
 .cpp.o :
-	$(CC) -c `wx-config --cflags` -o $@ $<
+	$(CXX) -c `wx-config --cxxflags` -o $@ $<
 
 $(PROGRAM): $(OBJECTS)
-	$(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
+	$(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
 	
 clean:
 	rm -f *.o $(PROGRAM)