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 <[email protected]> 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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to