diff options
author | Ed Maste <emaste@FreeBSD.org> | 2015-10-09 16:43:36 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2015-10-09 16:43:36 +0000 |
commit | 91b92b626c28ca4664d62bd9c7bc84681d6202e3 (patch) | |
tree | 3204d66ea62cf44f2804254b0f09d779e55564e8 /mk | |
parent | d8a0b3e7b110453a0d5558b4c1128a071b846d3f (diff) | |
download | src-91b92b626c28ca4664d62bd9c7bc84681d6202e3.tar.gz src-91b92b626c28ca4664d62bd9c7bc84681d6202e3.zip |
Notes
Diffstat (limited to 'mk')
-rw-r--r-- | mk/elftoolchain.inc.mk | 6 | ||||
-rw-r--r-- | mk/os.Darwin.mk | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/mk/elftoolchain.inc.mk b/mk/elftoolchain.inc.mk index 2d93c69e54cf..86f51bcd42de 100644 --- a/mk/elftoolchain.inc.mk +++ b/mk/elftoolchain.inc.mk @@ -1,7 +1,7 @@ # # Rules for handling include files. # -# $Id: elftoolchain.inc.mk 2608 2012-10-03 09:16:11Z jkoshy $ +# $Id: elftoolchain.inc.mk 3245 2015-08-31 19:54:13Z emaste $ .if !defined(TOP) .error Make variable \"TOP\" has not been defined. @@ -11,8 +11,8 @@ .include <bsd.own.mk> -.if ${OS_HOST} == "DragonFly" || ${OS_HOST} == "FreeBSD" || \ - ${OS_HOST} == "OpenBSD" +.if ${OS_HOST} == "Darwin" || ${OS_HOST} == "DragonFly" || \ + ${OS_HOST} == "FreeBSD" || ${OS_HOST} == "OpenBSD" # Simulate <bsd.inc.mk>. NOBINMODE?= 444 # Missing in OpenBSD's rule set. diff --git a/mk/os.Darwin.mk b/mk/os.Darwin.mk new file mode 100644 index 000000000000..450c671abda3 --- /dev/null +++ b/mk/os.Darwin.mk @@ -0,0 +1,8 @@ +# $Id$ +# +# Build definitions for Darwin + +# Apple ships libarchive, but for some reason does not provide the headers. +# Build against a homebrew-provided libarchive library and headers. +LDFLAGS+= -L/usr/local/opt/libarchive/lib +CFLAGS+= -I/usr/local/opt/libarchive/include |