summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2021-04-05 15:39:07 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2021-04-05 15:39:07 +0000
commite3f2bd1ac7270a5ffdea008743eba282151b232a (patch)
tree0a965e552ed9a088c8626a36cb47b0307a1721f2 /Makefile
parent7a95cb4f41ec51b4eda59f5f4b96c1d4713dfa24 (diff)
downloadfpc-e3f2bd1ac7270a5ffdea008743eba282151b232a.tar.gz
* Makefiles regenerated
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@49124 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2e08e6a7ad..22198d8541 100644
--- a/Makefile
+++ b/Makefile
@@ -1694,6 +1694,19 @@ override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
endif
endif
+ifdef SYSROOTPATH
+override FPCOPT+=-XR$(SYSROOTPATH)
+else
+ifeq ($(OS_TARGET),$(OS_SOURCE))
+ifneq ($(findstring $(OS_TARGET),darwin),)
+ifneq ($(findstring $(CPU_TARGET),aarch64),)
+ifneq ($(wildcard /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk),)
+override FPCOPT+=-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
+endif
+endif
+endif
+endif
+endif
ifdef CREATESHARED
override FPCOPT+=-Cg
endif