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
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 /
......
> [-]
> 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