From 6a44d4c52765e4fd5ccf6a4a7c69486c9531431d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Fri, 2 Oct 2020 15:22:48 +0200 Subject: [PATCH] runtime_loader: define _LOADER_MODE for arch directories MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7eb6b77502eed76a529657d9ec733b72c9fc89c0 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3275 Reviewed-by: Jérôme Duval --- src/system/runtime_loader/arch/arm/Jamfile | 2 ++ src/system/runtime_loader/arch/arm64/Jamfile | 2 ++ src/system/runtime_loader/arch/m68k/Jamfile | 2 ++ src/system/runtime_loader/arch/ppc/Jamfile | 2 ++ src/system/runtime_loader/arch/riscv64/Jamfile | 2 ++ src/system/runtime_loader/arch/sparc/Jamfile | 2 ++ src/system/runtime_loader/arch/x86/Jamfile | 2 ++ src/system/runtime_loader/arch/x86_64/Jamfile | 2 ++ 8 files changed, 16 insertions(+) diff --git a/src/system/runtime_loader/arch/arm/Jamfile b/src/system/runtime_loader/arch/arm/Jamfile index 2533a32e49..500d89a703 100644 --- a/src/system/runtime_loader/arch/arm/Jamfile +++ b/src/system/runtime_loader/arch/arm/Jamfile @@ -10,6 +10,8 @@ for architectureObject in [ MultiArchSubDirSetup arm ] { SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) ] ; + DEFINES += _LOADER_MODE ; + StaticLibrary <$(architecture)>libruntime_loader_$(TARGET_ARCH).a : arch_relocate.cpp : diff --git a/src/system/runtime_loader/arch/arm64/Jamfile b/src/system/runtime_loader/arch/arm64/Jamfile index a1e1867657..182114203b 100644 --- a/src/system/runtime_loader/arch/arm64/Jamfile +++ b/src/system/runtime_loader/arch/arm64/Jamfile @@ -10,6 +10,8 @@ for architectureObject in [ MultiArchSubDirSetup arm64 ] { SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) ] ; + DEFINES += _LOADER_MODE ; + StaticLibrary <$(architecture)>libruntime_loader_$(TARGET_ARCH).a : arch_relocate.cpp : diff --git a/src/system/runtime_loader/arch/m68k/Jamfile b/src/system/runtime_loader/arch/m68k/Jamfile index 1dc43f5c38..cfb139c93f 100644 --- a/src/system/runtime_loader/arch/m68k/Jamfile +++ b/src/system/runtime_loader/arch/m68k/Jamfile @@ -10,6 +10,8 @@ for architectureObject in [ MultiArchSubDirSetup m68k ] { SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) ] ; + DEFINES += _LOADER_MODE ; + StaticLibrary <$(architecture)>libruntime_loader_$(TARGET_ARCH).a : arch_relocate.cpp : diff --git a/src/system/runtime_loader/arch/ppc/Jamfile b/src/system/runtime_loader/arch/ppc/Jamfile index 6bc521b45e..26cb1d351c 100644 --- a/src/system/runtime_loader/arch/ppc/Jamfile +++ b/src/system/runtime_loader/arch/ppc/Jamfile @@ -10,6 +10,8 @@ for architectureObject in [ MultiArchSubDirSetup ppc ] { SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) ] ; + DEFINES += _LOADER_MODE ; + StaticLibrary <$(architecture)>libruntime_loader_$(TARGET_ARCH).a : arch_relocate.cpp : diff --git a/src/system/runtime_loader/arch/riscv64/Jamfile b/src/system/runtime_loader/arch/riscv64/Jamfile index 4204d6d9d3..0cb1eb7e79 100644 --- a/src/system/runtime_loader/arch/riscv64/Jamfile +++ b/src/system/runtime_loader/arch/riscv64/Jamfile @@ -10,6 +10,8 @@ for architectureObject in [ MultiArchSubDirSetup riscv64 ] { SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) ] ; + DEFINES += _LOADER_MODE ; + StaticLibrary <$(architecture)>libruntime_loader_$(TARGET_ARCH).a : arch_relocate.cpp : diff --git a/src/system/runtime_loader/arch/sparc/Jamfile b/src/system/runtime_loader/arch/sparc/Jamfile index 59472320ee..43de71c836 100644 --- a/src/system/runtime_loader/arch/sparc/Jamfile +++ b/src/system/runtime_loader/arch/sparc/Jamfile @@ -10,6 +10,8 @@ for architectureObject in [ MultiArchSubDirSetup sparc ] { SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) ] ; + DEFINES += _LOADER_MODE ; + StaticLibrary <$(architecture)>libruntime_loader_$(TARGET_ARCH).a : arch_relocate.cpp : diff --git a/src/system/runtime_loader/arch/x86/Jamfile b/src/system/runtime_loader/arch/x86/Jamfile index 68cb226dd0..1348a19789 100644 --- a/src/system/runtime_loader/arch/x86/Jamfile +++ b/src/system/runtime_loader/arch/x86/Jamfile @@ -10,6 +10,8 @@ for architectureObject in [ MultiArchSubDirSetup x86 x86_gcc2 ] { SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) ] ; + DEFINES += _LOADER_MODE ; + StaticLibrary <$(architecture)>libruntime_loader_$(TARGET_ARCH).a : arch_relocate.cpp : diff --git a/src/system/runtime_loader/arch/x86_64/Jamfile b/src/system/runtime_loader/arch/x86_64/Jamfile index 009713d953..d5d101fe93 100644 --- a/src/system/runtime_loader/arch/x86_64/Jamfile +++ b/src/system/runtime_loader/arch/x86_64/Jamfile @@ -10,6 +10,8 @@ for architectureObject in [ MultiArchSubDirSetup x86_64 ] { SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) ] ; + DEFINES += _LOADER_MODE ; + StaticLibrary <$(architecture)>libruntime_loader_$(TARGET_ARCH).a : arch_relocate.cpp :