Commit 01ebb2562f0ba93eb8601aac3a9823f8d3fac8de

marcelo 2003-01-14T16:09:55

Mantra: Link C++ programs with the C++ compiler

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/unix/demo/Makefile b/unix/demo/Makefile
index 1b37598..ed9e4a0 100644
--- a/unix/demo/Makefile
+++ b/unix/demo/Makefile
@@ -27,7 +27,7 @@ CPPFLAGS += -I$(top_srcdir)/src
 LIBS += $(FT2_LIBS)
 
 FTGLDemo: $(OBJS)
-	$(LIBTOOL) --mode=link $(CC) $^ -o $@ $(top_builddir)/src/libftgl.la $(LIBGLUT)
+	$(LIBTOOL) --mode=link $(CXX) $^ -o $@ $(top_builddir)/src/libftgl.la $(LIBGLUT) $(LIBS)
 
 install-local: FTGLDemo
 	$(INSTALL) -d -m 0755 $(bindir)