From 3cab4a5404bd5924c1b794c6cb079344cdf12ea2 Mon Sep 17 00:00:00 2001 From: Yen-Ming Lee Date: Mon, 2 Apr 2007 07:07:30 +0000 Subject: [PATCH] - respect CC --- net/linuxigd/files/patch-Makefile | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/net/linuxigd/files/patch-Makefile b/net/linuxigd/files/patch-Makefile index 690e1ae903bc..22a6a43af300 100644 --- a/net/linuxigd/files/patch-Makefile +++ b/net/linuxigd/files/patch-Makefile @@ -1,7 +1,7 @@ ---- Makefile.orig Thu May 2 23:53:12 2002 -+++ Makefile Sat Aug 3 22:10:53 2002 -@@ -1,6 +1,6 @@ - CC=g++ +--- Makefile.orig Sat Dec 14 06:16:22 2002 ++++ Makefile Mon Apr 2 14:54:39 2007 +@@ -1,6 +1,5 @@ +-CC=g++ -INCLUDES= -I/usr/include/upnp -LIBS= -lpthread /usr/lib/libupnp.so +INCLUDES= -I$(LOCALBASE)/include @@ -9,7 +9,19 @@ ifeq ($(DEBUG),1) -@@ -26,6 +26,6 @@ +@@ -16,17 +15,17 @@ + all: $(APPS) + + upnpd: gate.o gateway.o sample_util.o ipcon.o portmap.o pmlist.o +- $(CC) $(CFLAGS) gate.o gateway.o sample_util.o ipcon.o portmap.o pmlist.o $(LIBS) -o $@ ++ $(CXX) $(CFLAGS) gate.o gateway.o sample_util.o ipcon.o portmap.o pmlist.o $(LIBS) -o $@ + @echo "make $@ finished on `date`" + + %.o: %.cpp +- $(CC) $(CFLAGS) $(INCLUDES) -c $< ++ $(CXX) $(CFLAGS) $(INCLUDES) -c $< + + clean: rm -f *.o $(APPS) install: upnpd @@ -19,3 +31,4 @@ + @install -d $(PREFIX)/etc/linuxigd + @$(BSD_INSTALL_DATA) etc/* $(PREFIX)/etc/linuxigd + @$(BSD_INSTALL_PROGRAM) upnpd $(PREFIX)/bin +