diff options
author | nickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2020-05-06 20:41:01 +0000 |
---|---|---|
committer | nickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2020-05-06 20:41:01 +0000 |
commit | 47a7c7a04e283181834b2a757b3d703c1d8c2099 (patch) | |
tree | 8f3ade940862f22e5f916e2a685d265abdbea3c0 /rtl/win32/Makefile | |
parent | 001d79d670c15795c63fbbb97eb38109c75ef534 (diff) | |
download | fpc-47a7c7a04e283181834b2a757b3d703c1d8c2099.tar.gz |
* fixed fpmake invokation when building an i386-linux snapshot on a x86_64-linux host
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@45298 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl/win32/Makefile')
-rw-r--r-- | rtl/win32/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rtl/win32/Makefile b/rtl/win32/Makefile index 934e25926c..14e416f608 100644 --- a/rtl/win32/Makefile +++ b/rtl/win32/Makefile @@ -2370,6 +2370,7 @@ endif endif endif endif +FPCMAKEGCCLIBDIR:=$(shell dirname `gcc -print-libgcc-file-name`) ifndef GCCLIBDIR CROSSGCC=$(strip $(wildcard $(addsuffix /$(BINUTILSPREFIX)gcc$(SRCEXEEXT),$(SEARCHPATH)))) ifneq ($(CROSSGCC),) @@ -2381,7 +2382,7 @@ ifdef inUnix ifeq ($(OS_SOURCE),netbsd) OTHERLIBDIR:=/usr/pkg/lib endif -export GCCLIBDIR OTHERLIBDIR +export GCCLIBDIR FPCMAKEGCCLIBDIR OTHERLIBDIR endif BATCHEXT=.bat LOADEREXT=.as @@ -2974,8 +2975,12 @@ ifdef LINKSHARED endif ifdef GCCLIBDIR override FPCOPT+=-Fl$(GCCLIBDIR) +ifdef FPCMAKEGCCLIBDIR +override FPCMAKEOPT+=-Fl$(FPCMAKEGCCLIBDIR) +else override FPCMAKEOPT+=-Fl$(GCCLIBDIR) endif +endif ifdef OTHERLIBDIR override FPCOPT+=$(addprefix -Fl,$(OTHERLIBDIR)) endif |