This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to check for -z now or -z lazy in LINK_COMMAND_SPEC with spec or code.
- From: Magnus Granberg <zorry at ume dot nu>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 14 Jul 2009 02:37:44 +0200
- Subject: How to check for -z now or -z lazy in LINK_COMMAND_SPEC with spec or code.
Hi
How to check for -Wl,-z,now or -Wl,-z,lazy with spec in LINK_COMMAND_SPEC or
do i need to add code for that?
i did try with %{!now:%{!lazy:foo}} but it did't work. I need some way to add
foo to the link command line when
-z lazy or -z now is not use. And i can't add it to the command line like gcc
-Wl,-foo.
/Magnus