rules_foreign_cc
rules_foreign_cc copied to clipboard
Allow `prefix` to be set as an absolute path in `configure`
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
@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