Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jun 1999 19:51:03 -0500
From:      Nathan Ahlstrom <nrahlstr@winternet.com>
To:        Brandon Fosdick <bfoz@glue.umd.edu>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Linking libraries on 3.2-S
Message-ID:  <19990617195103.B13293@winternet.com>
In-Reply-To: <376996EE.887EADCB@glue.umd.edu>; from Brandon Fosdick on Thu, Jun 17, 1999 at 08:46:38PM -0400
References:  <37697EC6.4FA99E8@glue.umd.edu> <19990617183928.A44151@portage.winternet.com> <376996EE.887EADCB@glue.umd.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

<trim>

> > > INCLUDE_DIRS = -I/usr/include -I/usr/X11R6/include
> > > CFLAGS = $(INCLUDE_DIRS)
> > > LDFLAGS = -lm -lGL
> > 
> > Just to see if this works, try adding -L/usr/X11R6/lib to the LDFLAGS
> > line in the makefile.  Adding the -v option to cc might tell you
> > where it is looking for libraries? (not too sure about this one)
> > 
> > Good Luck,
> > Nathan
> 
> That did the trick, thanks. Shouldn't it be looking in that directory by
> default? rc.conf has it listed in the directories scanned at boot.

One would think so?!?

> The -v option prints out the commands it used in the compilation. It
> puts out enough to show that it's only looking in /usr/lib. 

Hmmm..can you run the ldconfig command by hand to see if it works after
that:
ldconfig -elf <directories here>
ldcofig -aout <aout directories here>

Good Luck,
Nathan

-- 
Nathan Ahlstrom                        FreeBSD: http://www.FreeBSD.org/
nrahlstr@winternet.com                 PGP Key ID: 0x67BC9D19


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990617195103.B13293>