In create_simple_make(), use CXX to link the extension module when

either -c++ or -withcxx is used.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7463 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Kevin Ruland 2005-09-20 13:55:23 +00:00
commit 455035e04e

View file

@ -297,7 +297,11 @@ public:
Printf(f_make, "EXTRA_INC=\n");
Printf(f_make, "EXTRA_LIB=\n\n" );
Printf(f_make, "$(PROG): $(OBJS)\n");
Printf(f_make, "\t$(CC) $(LDFLAGS) $(OBJS) -o $(PROG) $(EXTRA_LIB)\n\n");
if ( CPlusPlus || (withcxx != NULL) ) {
Printf(f_make, "\t$(CXX) $(LDFLAGS) $(OBJS) -o $(PROG) $(EXTRA_LIB)\n\n");
} else {
Printf(f_make, "\t$(CC) $(LDFLAGS) $(OBJS) -o $(PROG) $(EXTRA_LIB)\n\n");
}
Printf(f_make, "%%.o: %%.cpp\n");
Printf(f_make, "\t$(CXX) $(EXTRA_INC) $(PHP_INC) $(CFLAGS) -c $<\n");
Printf(f_make, "%%.o: %%.cxx\n");