From owner-freebsd-questions Thu Jun 17 17:51:28 1999 Delivered-To: freebsd-questions@freebsd.org Received: from icicle.winternet.com (icicle.winternet.com [198.174.169.13]) by hub.freebsd.org (Postfix) with ESMTP id 042F114D0F for ; Thu, 17 Jun 1999 17:51:24 -0700 (PDT) (envelope-from nrahlstr@mail.winternet.com) Received: from tundra.winternet.com (nrahlstr@tundra.winternet.com [198.174.169.11]) by icicle.winternet.com (8.9.3/8.9.3) with ESMTP id TAA21006; Thu, 17 Jun 1999 19:51:23 -0500 (CDT) SMTP "HELO" (ESMTP) greeting from tundra.winternet.com But _really_ from :: nrahlstr@tundra.winternet.com [198.174.169.11] SMTP "MAIL From" = nrahlstr@mail.winternet.com (Nathan Ahlstrom) SMTP "RCPT To" = Received: (from nrahlstr@localhost) by tundra.winternet.com (8.8.7/8.8.4) id TAA13352; Thu, 17 Jun 1999 19:51:04 -0500 (CDT) Message-ID: <19990617195103.B13293@winternet.com> Date: Thu, 17 Jun 1999 19:51:03 -0500 From: Nathan Ahlstrom To: Brandon Fosdick Cc: FreeBSD Questions Subject: Re: Linking libraries on 3.2-S Mail-Followup-To: Brandon Fosdick , FreeBSD Questions References: <37697EC6.4FA99E8@glue.umd.edu> <19990617183928.A44151@portage.winternet.com> <376996EE.887EADCB@glue.umd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <376996EE.887EADCB@glue.umd.edu>; from Brandon Fosdick on Thu, Jun 17, 1999 at 08:46:38PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > 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 ldcofig -aout 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