This is the mail archive of the
mailing list for the GCC project.
Re: Is this supposed to work, or am I loopy?
- To: pedwards at disaster dot jaj dot com
- Subject: Re: Is this supposed to work, or am I loopy?
- From: Nick Clifton <nickc at redhat dot com>
- Date: Fri, 5 Jan 2001 10:14:13 -0800
- CC: gcc at gcc dot gnu dot org
: Under sparc-sun-solaris2.8, we can set the shared library search
: path thusly:
: % /stuff/pme/Ebuild/bin/g++ -R/stuff/pme/Ebuild/lib huh.cc
: Under i686-pc-linux-gnu, however (sorry about the long lines):
: 24% /home/pme/build/install-2001-01-04/bin/g++
: -R/home/pme/build/install-2001-01-04/lib huh.cc
: g++: unrecognized option `-R/home/pme/build/install-2001-01-04/lib'
: Is there nothing supported under Linux other than using a pair of -Wl
: options? According to its manual, GNU ld would recognize -Rfoo as a runtime
: library search path setting when foo is a directory, if the driver weren't
: killing it first.
What's wrong with using -Wl, ? It is only four more characters to
type, and it will then work on all build environments.
g++ -Wl,-R/home/pme/build/install-2001-01-04/lib huh.cc