[SCM] pd-cyclone/master: Explicitely set CFLAGS

zmoelnig-guest at users.alioth.debian.org zmoelnig-guest at users.alioth.debian.org
Mon Dec 9 16:46:45 UTC 2013


The following commit has been merged in the master branch:
commit 655155d1b2671f9622124c364ab0ebb3556e081a
Author: IOhannes m zmölnig <zmoelnig at iem.at>
Date:   Mon Dec 9 15:45:53 2013 +0100

    Explicitely set CFLAGS
    
    lowering optimization from "-O6" to "-g -O2".
    
    this includes the INCLUDE-path to previously private
    Pd-headers (/usr/include/pd) which makes the
    'add_required_internal_pd_headers' patch obsolete.
    
    prepare to include hardening flags.

diff --git a/debian/rules b/debian/rules
index 7d1993c..76840e3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,7 +14,12 @@ DEB_MAKE_INSTALL_TARGET = DESTDIR=$(CURDIR)/debian/tmp \
 			  prefix=/usr pkglibdir=$(pkglibdir) install
 
 # Upstream build system can't handle explicit CFLAGS, so don't pass them
-DEB_MAKE_EXTRA_ARGS = 
+# but upstream's build-systems handles WARN_CFLAGS and OPT_CFLAGS
+WARN_CFLAGS=-Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch
+OPT_CFLAGS=-O2 -g -funroll-loops -fomit-frame-pointer -fno-strict-aliasing
+INCLUDES=-I. -I$(CURDIR)/shared -I/usr/include/pd
+CFLAGS=$(WARN_CFLAGS) $(OPT_CFLAGS) -fPIC -DUNIX $(INCLUDES)
+DEB_MAKE_EXTRA_ARGS = CFLAGS="$(CFLAGS)"
 
 LIBRARY_NAME = cyclone
 PACKAGE = pd-$(LIBRARY_NAME)

-- 
pd-cyclone packaging



More information about the pkg-multimedia-commits mailing list