Skip to content

Commit

Permalink
[XrdPosix] Do not compile XrdPosixPreload with link-time optimizations
Browse files Browse the repository at this point in the history
Fixes: #2032
  • Loading branch information
amadio committed Jun 12, 2023
1 parent 52b7a4a commit 308683e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/XrdPosix.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ set_target_properties(
VERSION ${XRD_POSIX_PRELOAD_VERSION}
SOVERSION ${XRD_POSIX_PRELOAD_SOVERSION} )

# This is a special library meant to be loaded with LD_PRELOAD.
# It is meant to replace symbols from the system and as such
# must not be compiled with link-time optimizations.

target_compile_options(XrdPosixPreload PRIVATE -fno-lto)

#-------------------------------------------------------------------------------
# Install
#-------------------------------------------------------------------------------
Expand Down

0 comments on commit 308683e

Please sign in to comment.