Look likes ldflags specified in BUILD.gn doesn't work.
40 views
Skip to first unread message
Samuel Yang
unread,
Oct 24, 2016, 10:32:49 PM10/24/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium-dev
Dear all,
I have added a new target and have add something like below in BUILD.gn. But looks like these ldflags are not set when linking the target. Do you know how to add extra ldflags in my own target? thanks.
ldflags = [
"-Wl,--no-as-needed,-levent",
"-lm",
]
Thiago Farina
unread,
Oct 25, 2016, 1:56:25 PM10/25/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to yangxi...@gmail.com, Chromium-dev
Did you rerun `gn gen`? What is the output of `ninja -v`?
--
Thiago Farina
Samuel Yang
unread,
Oct 25, 2016, 9:34:23 PM10/25/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium-dev, yangxi...@gmail.com
Yes, I have run gn gen and no error.
with ninja verbose option, I didn't see anything I added in the ldflags.
在 2016年10月26日星期三 UTC+8上午1:56:25,Thiago Farina写道:
Brett Wilson
unread,
Oct 25, 2016, 9:43:34 PM10/25/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Samuel Yang, Chromium-dev
You still didn't say the details of what you're doing so I still can't help.