Re: awk, nawk statisch linken

From: Oliver Fromme <olli(at)secnetix.de>
Date: Wed, 4 Jun 2003 14:40:05 +0200 (CEST)

Matthias Teege <matthias-dbsdq(at)mteege.de> wrote:
> ich brauche für eine CGI Umgebung einen statisch gelinkten awk. Dazu
> habe ich die CFLAGS in /usr/src/usr.bin/awk/Makefile um «-static»
> ergänzt und make angeworfen.

Du solltest besser die CFLAGS nicht ändern, sondern statt-
dessen

NOSHARED?= YES

in das Makefile reinschreiben.

> Heraus kommt ein, hoffentlich statisch
> gelinkter, nawk.

Wissen ist besser als hoffen. ;-)
Ob es wirklich statisch ist, sagen Dir »file« und »ldd«.

> -r-xr-xr-x 1 root wheel 143064 1 Aug 2002 /usr/bin/awk
> -r-xr-xr-x 1 root wheel 112624 1 Aug 2002 /usr/bin/nawk

Der awk ist ein GNU-awk, der nawk ist ein nawk.
Im Normalfall sollten awk-Skripte mit beiden funktionieren;
es gibt nur ein paar subtile Unterschiede, z.B. bei der Un-
terstützung von Zeichenklassen (»[:space:]« usw.).

In -current sieht das noch etwas anders aus.

Gruß
   Olli

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
Man had always assumed that he was more intelligent than dolphins
because he had achieved so much... the wheel, New York, wars, and so
on, whilst all the dolphins had ever done was muck about in the water
having a good time. But conversely the dolphins believed themselves
to be more intelligent than man for precisely the same reasons.
                -- Douglas Adams, "The Hitchhikers Guide To The Galaxy"
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 04 Jun 2003 - 14:40:08 CEST

search this site