rules_foreign_cc icon indicating copy to clipboard operation
rules_foreign_cc copied to clipboard

Allow `prefix` to be set as an absolute path in `configure`

Open mishazharov opened this issue 1 year ago • 1 comments

This PR allows setting the --prefix flag to an absolute path for configure. When make is invoked, targets that start with install or uninstall are given a DESTDIR flag which instructs make to place the install output into the directory that the rules expect the installed files to be in.

Since there could be some shortfalls with this approach of setting the prefix flag (namely if make doesn't support DESTDIR for some reason) this new option is specified as "experimental"

Closes https://github.com/bazelbuild/rules_foreign_cc/issues/823

mishazharov avatar Jan 01 '24 20:01 mishazharov

@jsharpe Can you please take a look at this PR if you have a chance? It simplified some of our build setup because binaries aren't confused about where they're being executed from

mishazharov avatar Feb 14 '24 06:02 mishazharov