diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2007-10-29 22:07:43 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2007-10-29 22:07:43 +0000 |
commit | 6a21d45bb06c7d925178d154aad11584735e0031 (patch) | |
tree | 648f6d7cbdd104da48bc71a34920174dd9385266 /dev-games/clanlib/files | |
parent | Version bump. (diff) | |
download | gentoo-2-6a21d45bb06c7d925178d154aad11584735e0031.tar.gz gentoo-2-6a21d45bb06c7d925178d154aad11584735e0031.tar.bz2 gentoo-2-6a21d45bb06c7d925178d154aad11584735e0031.zip |
add patch to build with -DNDEBUG from Guenther Brunthaler (bug #154513)
(Portage version: 2.1.3.16)
Diffstat (limited to 'dev-games/clanlib/files')
-rw-r--r-- | dev-games/clanlib/files/clanlib-0.7.8-ndebug.patch | 21 | ||||
-rw-r--r-- | dev-games/clanlib/files/clanlib-0.8.0-ndebug.patch | 21 |
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-games/clanlib/files/clanlib-0.7.8-ndebug.patch b/dev-games/clanlib/files/clanlib-0.7.8-ndebug.patch new file mode 100644 index 000000000000..e41bae1a3296 --- /dev/null +++ b/dev-games/clanlib/files/clanlib-0.7.8-ndebug.patch @@ -0,0 +1,21 @@ +Patch for clanlib-0.7.8-r2 Bug 154513: + +Signal handler deinit() was not declared. + +This leads to a compilation failure when a release version +rather than a debug version is built (-DNDEBUG). + +This patch adds the missing declaration, thus make the +file compile with or without -DNDEBUG. + +diff -Naur clanlib-0.7.8-r2.orig/work/ClanLib-0.7.8/Sources/Core/System/Unix/init_linux.cpp clanlib-0.7.8-r2/work/ClanLib-0.7.8/Sources/Core/System/Unix/init_linux.cpp +--- clanlib-0.7.8-r2.orig/work/ClanLib-0.7.8/Sources/Core/System/Unix/init_linux.cpp 2003-09-19 10:33:02.000000000 +0000 ++++ clanlib-0.7.8-r2/work/ClanLib-0.7.8/Sources/Core/System/Unix/init_linux.cpp 2007-10-26 13:36:39.000000000 +0000 +@@ -52,6 +52,7 @@ + _begin_time = (long) tv.tv_sec*(long) 1000+(long) tv.tv_usec/(long) 1000; + + #ifdef NDEBUG ++ sighandler_t deinit; + signal(SIGSEGV, deinit); + #endif + } diff --git a/dev-games/clanlib/files/clanlib-0.8.0-ndebug.patch b/dev-games/clanlib/files/clanlib-0.8.0-ndebug.patch new file mode 100644 index 000000000000..e41bae1a3296 --- /dev/null +++ b/dev-games/clanlib/files/clanlib-0.8.0-ndebug.patch @@ -0,0 +1,21 @@ +Patch for clanlib-0.7.8-r2 Bug 154513: + +Signal handler deinit() was not declared. + +This leads to a compilation failure when a release version +rather than a debug version is built (-DNDEBUG). + +This patch adds the missing declaration, thus make the +file compile with or without -DNDEBUG. + +diff -Naur clanlib-0.7.8-r2.orig/work/ClanLib-0.7.8/Sources/Core/System/Unix/init_linux.cpp clanlib-0.7.8-r2/work/ClanLib-0.7.8/Sources/Core/System/Unix/init_linux.cpp +--- clanlib-0.7.8-r2.orig/work/ClanLib-0.7.8/Sources/Core/System/Unix/init_linux.cpp 2003-09-19 10:33:02.000000000 +0000 ++++ clanlib-0.7.8-r2/work/ClanLib-0.7.8/Sources/Core/System/Unix/init_linux.cpp 2007-10-26 13:36:39.000000000 +0000 +@@ -52,6 +52,7 @@ + _begin_time = (long) tv.tv_sec*(long) 1000+(long) tv.tv_usec/(long) 1000; + + #ifdef NDEBUG ++ sighandler_t deinit; + signal(SIGSEGV, deinit); + #endif + } |