[X2Go-Commits] [pale-moon] 17/21: debian/rules: enable or disable optimizations when needed.

git-admin at x2go.org git-admin at x2go.org
Tue May 29 00:03:06 CEST 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository pale-moon.

commit e348928c62c1c3162af3931ab30849b61cb6757b
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon May 28 23:39:19 2018 +0200

    debian/rules: enable or disable optimizations when needed.
    
    Needs further support for CONFIGURE_FLAGS.
---
 debian/changelog | 2 ++
 debian/rules     | 8 ++++++++
 2 files changed, 10 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 7e2b132..b394e1a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -15,6 +15,8 @@ palemoon (27.9.2~repack-1-0x2go1) obs; urgency=medium
     - Add (more) CFLAGS overrides from Debian's firefox(-esr) package. Mostly
       disabling unsafe optimizations, also for special platforms such as ARM.
     - Export what needs to be exported.
+    - Enable or disable optimizations when needed. Needs further support for
+      CONFIGURE_FLAGS.
 
  -- Mihai Moldovan <ionic at ionic.de>  Mon, 28 May 2018 03:44:10 +0200
 
diff --git a/debian/rules b/debian/rules
index c5fc37a..19803fb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -47,6 +47,14 @@ endif
 endif
 endif
 
+ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+	CONFIGURE_FLAGS += --disable-optimize
+endif
+
+ifneq (,$(filter ia64,$(DEB_BUILD_ARCH)))
+	CONFIGURE_FLAGS += --enable-optimize=-O2
+endif
+
 CXXFLAGS = $(CFLAGS)
 
 EXPORTS := CC CXX CFLAGS CXXFLAGS CPPFLAGS LDFLAGS

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pale-moon.git


More information about the x2go-commits mailing list