LDFLAG options for linker

53 views
Skip to first unread message

yoges...@gmail.com

unread,
Feb 3, 2017, 9:23:49 AM2/3/17
to NAR Maven plugin
What is the correct way of using the LDFLAGS Linker options in the nar?

To add a followup question:

How does one pass LDFLAGS like options to the maven nar linker?
Specifically I would like to pass --no-as-needed option to the linker.

When I set :

<linker>
                        <name>${linker-name}</name>
                        <options>                          
                            <option>-Wl,-u,_cmdenv_lib </option>
                            <option>--no-as-needed -loppcmdenv</option>
...

I get error g++ "--no-as-needed" unrecognized command.

Hariharan M

unread,
Jan 15, 2020, 9:05:56 AM1/15/20
to NAR Maven plugin
Hi,
I am also looking for same options. Did you find answer for that question.

Thanks and Regards,
Hari
Reply all
Reply to author
Forward
0 new messages