Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"-rpath": valid option of gcc, or?

450 views
Skip to first unread message

Minko Markov

unread,
Sep 16, 2001, 6:05:15 PM9/16/01
to
Hi all,

I tried to compile the latest GNU wget
ftp://ftp.gnu.org/pub/gnu/wget/wget-1.7.tar.gz .
"./configure --with-ssl" failed, and I traced
the problem to the following. At one moment
the script ./configure creates a C program and
attempts to compile it:
gcc -o conftest -O6 -march=i586 -mcpu=i586 \
-L/usr/local/ssl/lib -rpath /usr/local/ssl/lib \
conftest.c -lcrypto
The attempt fails:
gcc: unrecognized option `-rpath'
/usr/local/ssl/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status

I checked the man page of gcc and indeed there is
no -rpath option mentioned there. -rpath is a valid
option of ld, as far as I figured out. How come that
the configuration script runs gcc with it? Is that
a bug of the config of wget, or I am missing something?

I have Linux 2.2.19, glibc 2.2.3, gcc 2.95.3, all
compiled here, and pretty much the latest versions
of the GNU tools.

Thanks,
Minko Markov

Juergen Heinzl

unread,
Sep 16, 2001, 6:14:18 PM9/16/01
to
In article <2bska9...@home.com>, Minko Markov wrote:
[-]

> The attempt fails:
> gcc: unrecognized option `-rpath'
> /usr/local/ssl/lib: file not recognized: Is a directory
> collect2: ld returned 1 exit status
[-]
It's a ld option and to pass a linker option to, well, the
linker use -Wl, ...
gcc -Wl,-rpath /path/to/libs
...

Mind the comma is not a typo and after "-Wl," the syntax
is just as the one the used linker expects.
[-]

Cheers,
Juergen

--
\ Real name : Juergen Heinzl \ no flames /
\ EMail Private : jue...@monocerus.demon.co.uk \ send money instead /

Minko Markov

unread,
Sep 16, 2001, 11:50:58 PM9/16/01
to
jue...@monocerus.demon.co.uk (Juergen Heinzl) writes:

......


> [-]
> It's a ld option and to pass a linker option to, well, the
> linker use -Wl, ...
> gcc -Wl,-rpath /path/to/libs
> ...
>
> Mind the comma is not a typo and after "-Wl," the syntax
> is just as the one the used linker expects.
> [-]

Thanks.

--
MM

0 new messages