*BSD News Article 50122


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!scsing.switch.ch!news.belwue.de!fu-berlin.de!zrz.TU-Berlin.DE!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: ld not searching /usr/x11R6/lib
Date: 28 Aug 1995 11:40:07 +0200
Organization: Private U**x site, Dresden.
Lines: 20
Message-ID: <41s2tn$qg2@bonnie.tcd-dresden.de>
References: <Z9AhbXg.mapler@delphi.com>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

mapler  <mapler@delphi.com> wrote:
>Since installing 2.0.5R, I have found that cc (ld) no longer searches
>in /usr/X11R6/lib for -lX11, etc.  I have searched the man pages and
>found no way to add this directory to the standard ld search path.
>ldconfig is not the answer, since it only establishes hints for dynamicly
>loaded libraries.  Is the only answer to link the .a files into /usr/lib?
>I know things were working under 2.0R, but I can't remember if I made
>the links or not.  Any help is appreciated.

It has been decided that ld has only to deal with /usr/lib by default.
``Builtin knowledge'' is what always causes portability problems.  Fix
your makefiles to include -L /usr/X11R6/lib (and -L /usr/local/lib,
FWIW).

Only /usr/lib is part of the operating system.
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)