1

I am adding quite a few mocks, using cmocka, which require me to alias them using the GC Clinker opetion --wrap=

I am passing a linker option of the format

-Wl,--wrap=foo,--wrap=bar,--wrap=baz,--wrap= ...

Is there any way to shorten it?

-Wl,--wrap=foo,bar,baz,... did not work. Any suggestions?

Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551

1 Answers1

3

Is there any way to shorten it?

No.

Why would you want to? If you care about the length of the resulting command line, note that GCC supports response files:

echo "-Wl,--wrap=foo,--wrap=bar,--wrap=baz,--wrap=..." > cmd
gcc @cmd ...
Employed Russian
  • 199,314
  • 34
  • 295
  • 362