cons-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patch for static linking


From: Brad Garcia
Subject: Re: patch for static linking
Date: Fri, 31 Aug 2001 09:43:43 -0400 (EDT)

On Fri, 31 Aug 2001, Steven Knight wrote:

> Why not do it with a cloned environment that sets SUFLIBS to just the
> static suffix?

Because it is possible to switch between dynamic linking and static
linking on a single command line.

For instance:

    g++ -o foo a.o b.o -Wl,-Bstatic -lcompat -Wl,-Bdynamic -llib2

The provided patch handles this correctly, switching between searching
for only static libraries and searching for dynamic, then static as
these linking options are parsed.


Brad Garcia




reply via email to

[Prev in Thread] Current Thread [Next in Thread]