[yade] 02/05: Disable Release-Mode in Cmake, pass -ftrack-macro-expansion=0 to reduce RAM-consumption during compilation. (Closes: #726009)
Anton Gladky
gladk at alioth.debian.org
Tue Oct 15 21:32:18 UTC 2013
This is an automated email from the git hooks/post-receive script.
gladk pushed a commit to branch master
in repository yade.
commit dd8d9771ad0661a9520b17856a0451fced5b368d
Author: Anton Gladky <gladky.anton at gmail.com>
Date: Tue Oct 15 19:31:18 2013 +0200
Disable Release-Mode in Cmake, pass -ftrack-macro-expansion=0 to reduce RAM-consumption during compilation. (Closes: #726009)
---
debian/patches/20_disable_release-mode.patch | 22 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 23 insertions(+)
diff --git a/debian/patches/20_disable_release-mode.patch b/debian/patches/20_disable_release-mode.patch
new file mode 100644
index 0000000..d696708
--- /dev/null
+++ b/debian/patches/20_disable_release-mode.patch
@@ -0,0 +1,22 @@
+Description: disable release-mode in cmake.
+ Pass also -ftrack-macro-expansion=0 option to
+ reduce RAM-consumption.
+ http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56746
+ https://lists.debian.org/debian-devel/2013/10/msg00219.html
+Author: Anton Gladky <gladk at debian.org>
+Origin: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701231#12
+Bug-Debian: http://bugs.debian.org/726009
+Last-Update: 2013-10-15
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -46,8 +46,7 @@
+ SET(CMAKE_BUILD_TYPE Debug)
+ SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DYADE_PTR_CAST=static_pointer_cast -DYADE_CAST=static_cast -DYADE_DEBUG")
+ ELSE (DEBUG)
+- SET(CMAKE_BUILD_TYPE Release)
+- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DYADE_PTR_CAST=static_pointer_cast -DYADE_CAST=static_cast -fPIC")
++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DYADE_PTR_CAST=static_pointer_cast -DYADE_CAST=static_cast -fPIC -ftrack-macro-expansion=0")
+ ENDIF (DEBUG)
+ ELSE (CMAKE_CXX_FLAGS)
+ #If flags are not set, add all useful flags
diff --git a/debian/patches/series b/debian/patches/series
index 2e06934..7914082 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
10_add_system_boot_to_be_linked.patch
+20_disable_release-mode.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/yade.git
More information about the debian-science-commits
mailing list