[OpenWrt-Devel] [PATCH] allow HOST* variables to be set from config.

Lawrence D'Anna larry at elder-gods.org
Mon Jul 20 01:27:52 EDT 2015

I’m using homebrew.    One of the libraries that seems to be needed is a modern version of openssl.     
The openssl included on mac os is kind of old and isn’t compatible
Homebrew installs most things to /usr/local, but Xcode doesn’t look there.   It installs openssl to /usr/local/opt
to avoid overlapping with the system’s openssl. 

I’ve also found some of the tools include  some headers from linux or glibc that you wouldn’t find on mac os,
like linux/types.h and elf.h.    I’ve extracted a sufficient set of these headers and I install them /usr/local

( https://github.com/smoofra/fake-glibc <https://github.com/smoofra/fake-glibc>  )

I’m surprised to hear you can build on mac os without any of these kinds of problems.   Could you tell me
what version of OS X and Xcode you’re on?   It I’m on mac os 10.11 / Xcode 7 so these issues might be new, 
but then again I can’t imagine what version of mac os would have had linux/types.h.

> On Jul 19, 2015, at 10:16 PM, Felix Fietkau <nbd at openwrt.org> wrote:
> On 2015-07-20 06:57, Lawrence D'Anna wrote:
>> I like to build openwrt on a mac. Some of the host-side tools it
>> builds need libraries and headers that aren’t
>> included in mac os, so I need to point these variables at an
>> alternate location where they are installed.
> I also build openwrt on a mac, and so far I have not needed a change
> like this. Are you using macports or homebrew? Or are you
> building/installing the missing host tools/libs manually somewhere else?
> - Felix

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150719/7919ecd7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4107 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150719/7919ecd7/attachment.p7s>
-------------- next part --------------
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list