Skip to content

Commit

Permalink
Bug#37042308 Server code fails to compile on new Ubuntu24.10 platform
Browse files Browse the repository at this point in the history
Bug#37046924 Server code fails to compile on new Fedora41 platform

RPM/DEB builds on Fedora/Ubuntu flags will add
   -flto=auto -ffat-lto-objects to CFLAGS
and this stripped away symbols from deflate.c

The fix is to remove -flto=xxx when building libzlib.a

Change-Id: I5906e788267bb976998e3fcb23c420478d8fc395
  • Loading branch information
Tor Didriksen authored and dahlerlend committed Sep 14, 2024
1 parent a96fd3c commit 0aceadd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extra/zlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ ENDIF()

IF(NOT WIN32)
STRING_APPEND(CMAKE_C_FLAGS " -fvisibility=hidden")
REMOVE_CMAKE_COMPILER_FLAGS(CMAKE_C_FLAGS "${MY_COMPILER_FLAG_FLTO}")
ENDIF()

# Xcode >= 14 makes noise about sprintf, and loss of precision
Expand Down

0 comments on commit 0aceadd

Please sign in to comment.