Date: Tue, 25 Jun 2002 00:00:15 -0700 (PDT) From: Ben Lyon <blyon@blindfaith.org> To: Michael Sharp <freebsd@ec.rr.com> Cc: behanna@zbzoom.net, freebsd-security@FreeBSD.ORG Subject: RE: libparanoia Message-ID: <Pine.BSF.4.21.0206242359120.24316-100000@kilgore.blindfaith.org> In-Reply-To: <2002.66.56.232.240.1024968758.squirrel@webmail.probsd.ws>
next in thread | previous in thread | raw e-mail | index | archive | help
From the GCC manpage:
The directories searched include several standard
system directories plus any that you specify with
`-L'.
Normally the files found this way are library
files--archive files whose members are object
files. The linker handles an archive file by scan-
ning through it for members which define symbols
that have so far been referenced but not defined.
However, if the linker finds an ordinary object
file rather than a library, the object file is
linked in the usual fashion. The only difference
between using an `-l' option and specifying a file
name is that `-l' surrounds library with `lib' and
`.a' and searches several directories.
hence either order should work, as well as:
-L/usr/local/lib/libparanoia.so
--Ben
--------------------------------------------------------------------
Ben Lyon blyon@blindfaith.org
(415)286-0896
On Mon, 24 Jun 2002, Michael Sharp wrote:
> Thx Chris, yea, I see now that it is backwards, but thats how the author
> had it documented. I'll compile apache now with the LDFLAGS argument and
> run ldd `which httpd` to see if it build libparanoia in. If not, I guess I
> could use apxs to install the libparanoia object file.
>
> Again, thx
> michael
>
> Chris BeHanna said:
> > On Mon, 24 Jun 2002, Michael Sharp wrote:
> >
> >> So, if I install libparanoia.. I would then add to any Makefile's
> >> CFLAGS arguments -lparanoia -L/usr/local/lib ?
> >
> > That looks backwards. "-L/usr/local/lib -lparanoia" looks more
> > sensible.
> >
> >> Example: /usr/ports/www/apache13/Makefile
> >>
> >> change: CFLAGS+= -O6 -fomit-frame-pointer
> >>
> >> to: CFLAGS+= -O6 -fomit-frame-pointer -lparanoia
> >> -L/usr/local/lib
> >>
> >> and apache13 would be built using /usr/local/lib/libparanoia.so ?
> >
> > No. You want to alter LDFLAGS, not CFLAGS.
> >
> > At some point in the not-too-distant past (i.e., around the time
> > of the publication of the zlib double-free bug), the merits and
> > caveats of using libparanoia were discussed. I suggest you search the
> > list archives.
> >
> > --
> > Chris BeHanna
> > Software Engineer (Remove "bogus" before responding.)
> > behanna@bogus.zbzoom.net
> > Turning coffee into software since 1990.
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-security" in the body of the message
>
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-security" in the body of the message
>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0206242359120.24316-100000>
