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:
parent
24442fb756
commit
455035e04e
1 changed files with 5 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue