From 03d73c79419cc6dcf3e05da618fcb421b718de3f Mon Sep 17 00:00:00 2001 From: Jules Villard Date: Tue, 5 Feb 2019 06:35:57 -0800 Subject: [PATCH] [make] record `SDKROOT` at configure-time to use during `make` Summary: This can help on Mojave. Reviewed By: katiejots Differential Revision: D13956571 fbshipit-source-id: 6dad17166 --- Makefile.autoconf.in | 2 ++ configure.ac | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Makefile.autoconf.in b/Makefile.autoconf.in index eee107622..e4acca941 100644 --- a/Makefile.autoconf.in +++ b/Makefile.autoconf.in @@ -66,6 +66,7 @@ PATCHELF = @PATCHELF@ PATH = @PATH@ prefix = @prefix@ PYTHON_lxml = @PYTHON_lxml@ +SDKROOT = @SDKROOT@ SHASUM = @SHASUM@ USER_JAVA_HOME = @USER_JAVA_HOME@ UTOP = @UTOP@ @@ -87,3 +88,4 @@ export CPATH := $(CPATH) export LIBRARY_PATH := $(LIBRARY_PATH) export CAML_LD_LIBRARY_PATH := $(CAML_LD_LIBRARY_PATH) export OPAMROOT := $(OPAMROOT) +export SDKROOT := $(SDKROOT) diff --git a/configure.ac b/configure.ac index f2c8a2317..addd9cf59 100644 --- a/configure.ac +++ b/configure.ac @@ -331,6 +331,8 @@ AS_IF([test "$SED" != "xno"], [ AC_SUBST([GNU_SED]) AC_CHECK_TOOL([BREW], [brew], [no]) +AC_ARG_VAR([SDKROOT], [path to the OSX platform SDK used by clang]) +AC_SUBST([SDKROOT]) AC_CHECK_TOOL([PATCHELF], [patchelf], [no])