From 282c88f9de897056f7a2461216dbfdb51ab655f3 Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 17 Sep 2004 22:09:31 +0000 Subject: Bite the bullet. Have to use different binaries on 2.4 and 2.6. --- bin/9c | 8 +++++++- bin/9l | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/9c b/bin/9c index 9da9be06..19bb6ebe 100755 --- a/bin/9c +++ b/bin/9c @@ -26,7 +26,13 @@ case "$tag" in *Darwin*) usegcc cflags="$ngflags -g3 -no-cpp-precomp" ;; *HP-UX*) cc=cc; cflags="-g -O -c -Ae" ;; -*Linux*) usegcc ;; +*Linux*) usegcc + case "`uname -r`" in + 2.6*) + cflags="$cflags -D__Linux26__" + ;; + esac + ;; *OSF1*) cc=cc; cflags="-g -O -c" ;; *SunOS*-cc) cc=cc; cflags="-g -O -c -xCC -D__sun__" diff --git a/bin/9l b/bin/9l index a427f2a5..4df0ef8d 100755 --- a/bin/9l +++ b/bin/9l @@ -10,7 +10,12 @@ case "$tag" in extralibs="$extralibs -lutil" ;; *Linux*) ld=gcc - extralibs="$extralibs -lutil -lpthread" + extralibs="$extralibs -lutil" + case "`uname -r`" in + 2.6.*) + extralibs="$extralibs -lpthread" + ;; + esac ;; *Darwin*) ld=gcc ;; *SunOS*) ld="${CC9:-cc} -g" -- cgit v1.2.3