X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/367e57ec9b921d7523c1ac3e9e3477850aaf3c66..2f3d9587ab2b78d8c409f7e5e08ea6eb532057b5:/samples/sockets/makefile.unx

diff --git a/samples/sockets/makefile.unx b/samples/sockets/makefile.unx
index ba32b1fcf8..c17ce68d36 100644
--- a/samples/sockets/makefile.unx
+++ b/samples/sockets/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)
 
 PROGRAMS = client server
 
@@ -11,15 +11,15 @@ PROGRAMS = client server
 .SUFFIXES:	.o .cpp
 
 .cpp.o :
-	$(CC) -c `wx-config --cflags` -o $@ $<
+	$(CXX) -c `wx-config --cxxflags` -o $@ $<
 
 all: $(PROGRAMS)
 
 client: client.o
-	$(CC) -o $@ $< `wx-config --libs`
+	$(CXX) -o $@ $< `wx-config --libs`
 
 server: server.o
-	$(CC) -o $@ $< `wx-config --libs`
+	$(CXX) -o $@ $< `wx-config --libs`
 
 clean:
 	rm -f *.o $(PROGRAMS)