diff options
author | rsc <devnull@localhost> | 2003-11-23 18:29:08 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2003-11-23 18:29:08 +0000 |
commit | dbd7b9a97eede27e707a279114305d7591d371fc (patch) | |
tree | 90e45fcce18ff109010d61f2d4fccb7d840302c4 /bin/9l | |
parent | 97a5e5f2dd40eff09cb650c91c21f680b6d4206a (diff) | |
download | plan9port-dbd7b9a97eede27e707a279114305d7591d371fc.tar.gz plan9port-dbd7b9a97eede27e707a279114305d7591d371fc.tar.bz2 plan9port-dbd7b9a97eede27e707a279114305d7591d371fc.zip |
various shell script fixes.
add 9a, 9c, 9l wrapper scripts.
label sets label on xterm/9term
Diffstat (limited to 'bin/9l')
-rwxr-xr-x | bin/9l | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -0,0 +1,26 @@ +#!/bin/sh + +ld=none +extralibs=-lm +tag="`uname`-`uname -m`-${CC:-cc}" +case "$tag" in +*FreeBSD*) ld=gcc ;; +*BSD*) ld=gcc ;; +*Linux*) ld=gcc ;; +*Darwin*) ld=gcc ;; +*SunOS*-cc) ld=cc; extralibs="$extralibs -lrt -lpthread" ;; +*SunOS*-gcc) ld=gcc ;; +*) + echo do not know how to link on "$tag" 1>&2 + exit 1 +esac + +case $ld in +gcc) + exec gcc \ + -ggdb \ + -L$PLAN9/lib \ + "$@" \ + $extralibs + ;; +esac |