Bug 1194 - Cross build fails when $host isn't `uname`
Cross build fails when $host isn't `uname`
Status: RESOLVED FIXED
Product: unbound
Classification: Unclassified
Component: server
1.6.0
All other
: P5 normal
Assigned To: unbound team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-12-28 10:56 CET by Andrew Tunnell-Jones
Modified: 2017-01-02 09:52 CET (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Tunnell-Jones 2016-12-28 10:56:08 CET
Trying to cross build libunbound 1.6.0 from Darwin to Linux croaks on compat/getentropy_osx.c out of the box. If I change line 1191 of configure.ac to reference $host instead of `uname` and run autoconf then the build succeeds. There is a few other `uname`s in configure.ac that probably need a gander too.

Cheers, Andrew
Comment 1 Wouter Wijngaards 2017-01-02 09:52:42 CET
Hi Andrew,

Thank you for the finding this issue.  I have fixed it as you suggested.  (The other uname looks allright, but good to inspect it).

Best regards, Wouter