Subject: Re: POSIX threads & NetBSD 1.6?
To: Lubomir Sedlacik <salo@Xtrmntr.org>
From: Brad Knowles <brad.knowles@skynet.be>
List: port-sparc
Date: 10/16/2002 01:23:31
At 12:05 AM +0200 2002/10/16, Lubomir Sedlacik wrote:
> linker doesn't stick it automatically, you need to add them to Makefile.
> either with CFLAGS and LDFLAGS (-I/usr/pkg/include and -L/usr/pkg/lib
> respectively or even -R/usr/pkg/lib to hardcode this search path into
> the binaries as pkgsrc does.
As I thought.
> see ld(1) and gcc(1) manpages for more
> details) to the environment on command line for make or configure
> commands or by patching Makefile or configure directly.
Right, but this means that NetBSD has effectively closed itself
to anything that is not inherently NetBSD-aware, or for which there
is not a NetBSD package/port. At least, there's an extra step that's
involved here that people will tend to stumble over.
> that's exactly
> what pkgsrc mechanism does for you. if you don't understand why is this
> good for you then you probably don't need that and just set LOCALBASE to
> /usr/local which is probably more comfortable for you.
I do understand the reasons why someone might want to do this.
Helping to prevent collisions between package/port software and truly
locally-built software is a good thing.
My primary question has to do more with why this step wasn't
followed by the natural next step, namely insuring that
/usr/pkg/include is always included in the normal patch searched by
the compiler for header files, and that /usr/pkg/lib is always
included in the normal search path for the linker & loader? After
all, the standard PATH definition for users includes /usr/pkg/bin, so
why not make the other modifications as well?
Anyway, thanks to your advice, I will be resetting LOCALBASE to
/usr/local, and re-installing everything I've built so far out of
/usr/pkgsrc.
I know that I won't be installing a whole lot of things on this
machine, and I'll only be manually installing things for which no
current package/port exists, so I am not concerned about collisions.
--
Brad Knowles, <brad.knowles@skynet.be>
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
-Benjamin Franklin, Historical Review of Pennsylvania.
GCS/IT d+(-) s:+(++)>: a C++(+++)$ UMBSHI++++$ P+>++ L+ !E W+++(--) N+ !w---
O- M++ V PS++(+++) PE- Y+(++) PGP>+++ t+(+++) 5++(+++) X++(+++) R+(+++)
tv+(+++) b+(++++) DI+(++++) D+(++) G+(++++) e++>++++ h--- r---(+++)* z(+++)