Blob Blame History Raw
From fdb74096242e76427b64c0f82dba77b05e611ad9 Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
Date: Thu, 24 Feb 2022 18:58:20 +0100
Subject: [PATCH] Disable LTO for XrdPosix on 32 bit architectures

---
 src/XrdPosix.cmake | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/XrdPosix.cmake b/src/XrdPosix.cmake
index cf3247818..453c20379 100644
--- a/src/XrdPosix.cmake
+++ b/src/XrdPosix.cmake
@@ -60,6 +60,10 @@ add_library(
                                  XrdPosix/XrdPosixExtern.hh
                                  XrdPosix/XrdPosixOsDep.hh )
 
+if(CMAKE_SIZEOF_VOID_P EQUAL 4)
+  target_compile_options(XrdPosixPreload PRIVATE -fno-lto)
+endif()
+
 target_link_libraries(
   XrdPosixPreload
   XrdPosix
-- 
2.35.1