Package: mysql-5.5
Version: 5.5.17-4
Severity: important
Tags: patch
User: [email protected]
Usertags: hurd

Hi,

currently[1], mysql-5.5 fails to build on GNU/Hurd.

The problem, fixed by the attached patch, is the lack of a GNU.cmake
file setting important flags for compiler and linker.

[1] 
https://buildd.debian.org/status/fetch.php?pkg=mysql-5.5&arch=hurd-i386&ver=5.5.17-4&stamp=1321793183

Thanks,
-- 
Pino
--- /dev/null
+++ b/cmake/os/GNU.cmake
@@ -0,0 +1,20 @@
+# This file includes GNU/Hurd specific options and quirks, related to system checks
+
+INCLUDE(CheckSymbolExists)
+
+SET(_GNU_SOURCE 1)
+
+# Fix CMake (< 2.8) flags. -rdynamic exports too many symbols.
+FOREACH(LANG C CXX)
+  STRING(REPLACE "-rdynamic" ""
+  CMAKE_SHARED_LIBRARY_LINK_${LANG}_FLAGS
+  "${CMAKE_SHARED_LIBRARY_LINK_${LANG}_FLAGS}"
+  )
+ENDFOREACH()
+
+# Ensure we have clean build for shared libraries
+# without unresolved symbols
+SET(LINK_FLAG_NO_UNDEFINED "-Wl,--no-undefined")
+
+# 64 bit file offset support flag
+SET(_FILE_OFFSET_BITS 64)

Reply via email to