Skip to content
Permalink
Browse files

support GNU/Linux (libtcl8.3 is in /usr/lib on RedHat and Debian).

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@972 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Kevin Van Vechten
Kevin Van Vechten committed Oct 6, 2002
1 parent ca15156 commit 9b03882cc43d4aae4b7996728bc151507c58c04c
Showing with 8 additions and 0 deletions.
  1. +1 −0 src/darwinports1.0/tcldir.sh
  2. +3 −0 src/pextlib1.0/compile.sh
  3. +4 −0 src/pextlib1.0/link.sh
@@ -4,5 +4,6 @@

case `uname -s` in
Darwin) echo /System/Library/Tcl/8.3/darwinports1.0 ;;
Linux) echo /usr/lib/tcl8.3/darwinports1.0 ;;
*) echo /usr/local/lib/tcl8.3/darwinports1.0 ;;
esac
@@ -12,4 +12,7 @@ case `uname -s` in
FreeBSD)
cc -c -fPIC -DPIC -I/usr/local/include/tcl8.3 -O -pipe $*
;;
Linux)
cc -c -fPIC -DPIC -I/usr/include/tcl8.3 -O -pipe $*
;;
esac
@@ -8,6 +8,7 @@ if [ "$1" = "-n" ]; then
case `uname -s` in
Darwin) echo $2.dylib ;;
FreeBSD) echo $2.so ;;
Linux) echo $2.so ;;
esac
exit 0
fi
@@ -22,4 +23,7 @@ case `uname -s` in
FreeBSD)
cc -shared $* -o ${LIB}.so -L/usr/local/lib -ltcl83
;;
Linux)
cc -shared $* -o ${LIB}.so -L/usr/lib/ -ltcl8.3
;;
esac

0 comments on commit 9b03882

Please sign in to comment.
You can’t perform that action at this time.