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"
@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
This PR allows setting the
--prefix
flag to an absolute path forconfigure
. Whenmake
is invoked, targets that start withinstall
oruninstall
are given aDESTDIR
flag which instructsmake
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 ifmake
doesn't supportDESTDIR
for some reason) this new option is specified as "experimental"Closes https://github.com/bazelbuild/rules_foreign_cc/issues/823