Skip to content

Commit 0aceadd

Browse files
Tor Didriksendahlerlend
authored andcommitted
Bug#37042308 Server code fails to compile on new Ubuntu24.10 platform
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
1 parent a96fd3c commit 0aceadd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extra/zlib/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ ENDIF()
3434

3535
IF(NOT WIN32)
3636
STRING_APPEND(CMAKE_C_FLAGS " -fvisibility=hidden")
37+
REMOVE_CMAKE_COMPILER_FLAGS(CMAKE_C_FLAGS "${MY_COMPILER_FLAG_FLTO}")
3738
ENDIF()
3839

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

0 commit comments

Comments
 (0)