Dan, I've found out how to set up the user environment, which fixes the 
library linking issue.

export LIBRARY_PATH=/usr/lib:/usr/local/lib:/opt/lib

And I would recommend any one to set this up as one of their environment 
variables if they install $XORG_PREFIX=/opt 

[EMAIL PROTECTED]:~/fgl_glxgears32$ env
HZ=100
SHELL=/bin/bash
TERM=xterm-color
HISTSIZE=1000
LIBRARY_PATH=/usr/lib:/usr/local/lib:/opt/lib
OLDPWD=/home/david
LC_ALL=en_AU.iso88591
USER=david
LS_COLORS=no=00:fi=00(I've cut this line down, as it is too long)
MAIL=/var/mail/david
PATH=/usr/local/bin:/bin:/usr/bin:/opt/bin:/opt/fluxbox/bin
INPUTRC=/etc/inputrc
PWD=/home/david/fgl_glxgears32
LANG=en_AU.iso88591
[EMAIL PROTECTED]:\w\$
HISTIGNORE=&:[bf]g:exit
SHLVL=1
HOME=/home/david
LANGUAGE=en_AU.iso88591
[EMAIL PROTECTED]
LOGNAME=david
PKG_CONFIG_PATH=/opt/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
PROMPT_COMMAND=echo -ne "\033]0;[EMAIL PROTECTED] : ${PWD}\007"
_=/usr/bin/env
[EMAIL PROTECTED]:~/fgl_glxgears32$


You might have too add more to the $LIBRARY_PATH if you install desktops 
in /opt (example:  /opt/kde/lib or /opt/gnome-2.14.1/lib)

And eliminates the need to add lines like "-L/opt/lib -lGL -lXrender" to 
non-autogenerated makefiles.


I got that info from the GCC man page :)


Regards
Dave





linux23dragon wrote:
>
> Thanks once again for the information on library linking with
> non-autogenerated Makefiles.
>
> Regards
> Dave
>

Dan Nicholson wrote:
> > On 4/21/06, linux23dragon <[EMAIL PROTECTED]> wrote:
> > > That did the trick Dan.  Thanks.
> > > It looks like I have to learn up on editing or configuring my own
> > > Makefiles, when situations like this pop up from time to time  :)
> >
> > Here's a really good thing to know about Makefiles.  The variables,
> > like "LIB = -lGL -lXrender", can be set at the command line as
> > arguments to make.  So, if you'd run "make" during the nvidia build
> > instead of running a shell script which called make, you could have
> > done
> >
> > make LIB="-L/opt/lib -lGL -lXrender"
> >
> > Possibly just `make LIB=-L/opt/lib' would have worked in that case too
> > since the Makefile variable is defined as LIB +=, but I'm not an
> > expert in make.
> >
> > I wouldn't worry about it much, though.  Most build systems are
> > designed specifically to handle the fact that people install things
> > with different prefixes.  You probably won't have to do much editing
> > of Makefiles.  However, X is something of a special case.  It's
> > historically been installed in /usr/X11R6, so some builds hard-code
> > that location.

> > Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to