Fix building of Tcl examples/test-suite on Mac OSX
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10683 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b5b11ce6f4
commit
bbadd70330
3 changed files with 21 additions and 3 deletions
|
|
@ -1,6 +1,9 @@
|
|||
Version 1.3.37 (in progress)
|
||||
=============================
|
||||
|
||||
2008-07-19: wsfulton
|
||||
Fix building of Tcl examples/test-suite on Mac OSX reported by Gideon Simpson.
|
||||
|
||||
2008-07-17: wsfulton
|
||||
Fix SF #2019156 Configuring with --without-octave or --without-alllang
|
||||
did not disable octave.
|
||||
|
|
|
|||
|
|
@ -96,6 +96,8 @@ TK_OPTS = -ltk -ltcl @LIBS@
|
|||
# Extra Tcl specific dynamic linking options
|
||||
TCL_DLNK = @TCLDYNAMICLINKING@
|
||||
TCL_SO = @TCL_SO@
|
||||
TCLLDSHARED = @TCLLDSHARED@
|
||||
TCLCXXSHARED = @TCLCXXSHARED@
|
||||
|
||||
# -----------------------------------------------------------
|
||||
# Build a new version of the tclsh shell
|
||||
|
|
@ -134,7 +136,7 @@ wish_cpp: $(SRCS)
|
|||
tcl: $(SRCS)
|
||||
$(SWIG) -tcl8 $(SWIGOPT) $(TCL_SWIGOPTS) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(TCL_INCLUDE)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(TCL_DLNK) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(TCL_SO)
|
||||
$(TCLLDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(TCL_DLNK) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(TCL_SO)
|
||||
|
||||
# -----------------------------------------------------------
|
||||
# Build a Tcl7.5 dynamic loadable module for C++
|
||||
|
|
@ -143,7 +145,7 @@ tcl: $(SRCS)
|
|||
tcl_cpp: $(SRCS)
|
||||
$(SWIG) -tcl8 -c++ $(SWIGOPT) $(TCL_SWIGOPTS) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDES) $(TCL_INCLUDE)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(TCL_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(TCL_SO)
|
||||
$(TCLCXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(TCL_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(TCL_SO)
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Cleaning the Tcl examples
|
||||
|
|
|
|||
15
configure.in
15
configure.in
|
|
@ -533,14 +533,27 @@ fi
|
|||
# Cygwin (Windows) needs the library for dynamic linking
|
||||
case $host in
|
||||
*-*-cygwin* | *-*-mingw*) TCLDYNAMICLINKING="$TCLLIB";;
|
||||
*-*-darwin*) TCLDYNAMICLINKING="-dynamiclib -flat_namespace -undefined suppress";;
|
||||
*)TCLDYNAMICLINKING="";;
|
||||
esac
|
||||
|
||||
case $host in
|
||||
*-*-darwin*)
|
||||
TCLLDSHARED='$(CC) -dynamiclib -undefined suppress -flat_namespace'
|
||||
TCLCXXSHARED='$(CXX) -dynamiclib -undefined suppress -flat_namespace'
|
||||
;;
|
||||
*)
|
||||
TCLLDSHARED='$(LDSHARED)'
|
||||
TCLCXXSHARED='$(CXXSHARED)'
|
||||
;;
|
||||
esac
|
||||
|
||||
fi
|
||||
|
||||
AC_SUBST(TCLINCLUDE)
|
||||
AC_SUBST(TCLLIB)
|
||||
AC_SUBST(TCLDYNAMICLINKING)
|
||||
AC_SUBST(TCLLDSHARED)
|
||||
AC_SUBST(TCLCXXSHARED)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Look for Python
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue