Skip to content

Controlling ARFLAGS when creating the static libs #3883

Answered by jmeekhof
jmeekhof asked this question in Q&A
Discussion options

You must be logged in to vote

@edenhill I found a workable solution. I cribbed this solution from envoy. Basically, rules_foreign_cc allows you to specify Make targets, and with that command you can inject an environment variable.

    targets = [
	    "ARFLAGS='' libs install-subdirs",
    ]

I feel like they may be a safer way to do this, but this works for now.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jmeekhof
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jmeekhof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants