-
option for linker ld
Hello,
I have to add the option +s to the linker (use of SHLIB_PATH to
prevent dynamic loading of shared library).
My problem is that compilation is done via the command cc -o where
the linker is not explicitely called : no reference to ld, but the
link is however done. I was not thinking about that before !
If I add the +s option to the cc -o line, the compilation is saying
"the option is not recognized".
I don't understand how to do.
thank you for any help
-
Re: option for linker ld
"awalter1" <alain.walter@thalesgroup.com> writes:
[color=blue]
> If I add the +s option to the cc -o line, the compilation is saying
> "the option is not recognized".[/color]
To pass an option directly to 'ld', in most compilers use
'-Wl,<option>' flag.
In your case, add -Wl,+s to your link line.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.