[PHP7] Make default C++ extension .cxx
This is SWIG's default for every language except PHP, and now is a good time to make this change so that once we drop PHP5 support, we'll have the same default everywhere. It's easy to override the default with -cppext cxx to get the PHP5 behaviour.
This commit is contained in:
parent
c7f593e1b1
commit
75a00cd15e
6 changed files with 13 additions and 7 deletions
|
|
@ -1188,7 +1188,7 @@ php: $(SRCDIR_SRCS)
|
|||
# --------------------------------------------------------------------
|
||||
|
||||
php_cpp: $(SRCDIR_SRCS)
|
||||
$(SWIG) -php7 -cppext cxx -c++ $(SWIGOPT) -o $(ICXXSRCS) $(INTERFACEPATH)
|
||||
$(SWIG) -php7 -c++ $(SWIGOPT) -o $(ICXXSRCS) $(INTERFACEPATH)
|
||||
$(CXX) -c $(CCSHARED) $(CPPFLAGS) $(CXXFLAGS) $(SRCDIR_SRCS) $(SRCDIR_CXXSRCS) $(ICXXSRCS) $(INCLUDES) $(PHP_INCLUDE)
|
||||
$(CXXSHARED) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(PHP_SO)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue