| Summary: | also look for host-prefixed ar, to avoid using ie /usr/bin/ar when cross compiling | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Peter Ãstrand <astrand> |
| Component: | Build system | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | CLOSED FIXED | ||
| Severity: | enhancement | CC: | dtucker |
| Priority: | P5 | ||
| Version: | -current | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Bug Depends on: | |||
| Bug Blocks: | 2360 | ||
|
Description
Peter Ãstrand
2015-02-19 19:00:12 AEDT
The proposed change to configure.ac is: -AC_PATH_PROG([AR], [ar]) +AC_CHECK_TOOLS([AR], [ar]) The autoconf man page says: "Like AC_CHECK_PROG, but first looks for prog-to-check-for with a prefix of the host type as specified by --host, followed by a dash." compared to AC_PATH_PROG which says: "Like AC_CHECK_PROG, but set variable to the absolute name of prog-to-check-for if found. The result of this test can be overridden by setting the variable variable. A positive result of this test is cached in the ac_cv_path_variable variable." I think we just use AR in the Makefile so I don't see a reason it could not be changed. comparing the output of configure before and after the proposed change shows -checking for ar... /usr/bin/ar +checking for ar... ar and a similar change in Makefile. Some of the other tools (notably the compiler) are not referenced by full path so I guess we're not adding any new dependencies on $PATH. Patch applied and will be in 6.9p1. Thanks! Close all resolved bugs after 7.3p1 release |