That command line option is actually for ld
(see manpage), not gcc
. You can pass ld
command line options via gcc
using the -Wl,
flag; so I would expect your <linkerarg>
to look like this:
<linkerarg value="-Wl,-weak_framework,Security" />
But you might have to mess about with the quotes to get that quite right...