Commit fe28c02 for zlib
commit fe28c0216e61770b6b1adb6886f74e40dac9e529
Author: Vollstrecker <werner@vollstreckernet.de>
Date: Tue Dec 30 18:48:41 2025 +0100
CMake: Filter out optimisation flags for the ada binder.
diff --git a/contrib/ada/cmake/binder_helper.cmake b/contrib/ada/cmake/binder_helper.cmake
index cc70d7c..87b3202 100644
--- a/contrib/ada/cmake/binder_helper.cmake
+++ b/contrib/ada/cmake/binder_helper.cmake
@@ -18,6 +18,12 @@ foreach(arg RANGE 5 ${CMAKE_ARGC})
continue()
endif(CMAKE_ARGV${arg} STREQUAL FLAGS)
+ string(SUBSTRING "${CMAKE_ARGV${arg}}" 0 2 start)
+
+ if(start STREQUAL "-O")
+ continue()
+ endif(start STREQUAL "-O")
+
if(REACHED_FLAGS)
list(APPEND FLAGS ${CMAKE_ARGV${arg}})
endif(REACHED_FLAGS)