[SCM] pd-iemnet/master: Enabled hardened builds

zmoelnig-guest at users.alioth.debian.org zmoelnig-guest at users.alioth.debian.org
Thu Jun 14 18:04:39 UTC 2012


The following commit has been merged in the master branch:
commit d83ebe5f02bba1eaa92d40d352221d382d872478
Author: IOhannes m zmölnig <zmoelnig at iem.at>
Date:   Thu Jun 14 19:59:37 2012 +0200

    Enabled hardened builds

diff --git a/debian/patches/hardening.patch b/debian/patches/hardening.patch
new file mode 100644
index 0000000..d04195d
--- /dev/null
+++ b/debian/patches/hardening.patch
@@ -0,0 +1,79 @@
+Author: IOhannes m zmölnig
+Description: use *FLAGS from outside to enable hardening
+Last-Update: 2012-06-14
+--- pd-iemnet.orig/Makefile
++++ pd-iemnet/Makefile
+@@ -11,12 +11,12 @@
+ 
+ # For objects that only build on certain platforms, add those to the SOURCES
+ # line for the right platforms.
+-SOURCES_android = 
+-SOURCES_cygwin = 
+-SOURCES_macosx = 
+-SOURCES_iphoneos = 
+-SOURCES_linux = 
+-SOURCES_windows = 
++SOURCES_android =
++SOURCES_cygwin =
++SOURCES_macosx =
++SOURCES_iphoneos =
++SOURCES_linux =
++SOURCES_windows =
+ 
+ # .c source files that will be statically linked to _all_ objects
+ HELPERSOURCES = iemnet.c iemnet_data.c  iemnet_receiver.c  iemnet_sender.c
+@@ -24,12 +24,12 @@
+ 
+ # list all pd objects (i.e. myobject.pd) files here, and their helpfiles will
+ # be included automatically
+-PDOBJECTS = 
++PDOBJECTS =
+ 
+ # if you want to include any other files in the source and binary tarballs,
+ # list them here.  This can be anything from header files, READMEs, example
+ # patches, documentation, etc.
+-EXTRA_DIST = 
++EXTRA_DIST =
+ 
+ # to enable debugging set this to "-DDEBUG"
+ # you can slo just run make as "make DEBUG_CFLAGS='-DDEBUG'"
+@@ -56,9 +56,9 @@
+ INSTALL_LIB     = $(INSTALL) -p -m 644 -s
+ INSTALL_DIR     = $(INSTALL) -p -m 755 -d
+ 
+-CFLAGS = -DPD -DLIBRARY_VERSION=\"$(LIBRARY_VERSION)\" -I$(PD_PATH)/src -Wall -W -Wno-unused -g 
+-LDFLAGS =  
+-LIBS = 
++CFLAGS += $(CPPFLAGS) -DPD -DLIBRARY_VERSION=\"$(LIBRARY_VERSION)\" -I$(PD_PATH)/src -Wall -W -Wno-unused -g
++LDFLAGS +=
++LIBS =
+ ALLSOURCES := $(SOURCES) $(SOURCES_android) $(SOURCES_cygwin) $(SOURCES_macosx) \
+ 	         $(SOURCES_iphoneos) $(SOURCES_linux) $(SOURCES_windows)
+ 
+@@ -79,7 +79,7 @@
+ 	CFLAGS := $(IPHONE_CFLAGS) $(OPT_CFLAGS) $(CFLAGS) \
+       -I/Applications/Pd-extended.app/Contents/Resources/include
+     LDFLAGS += -arch armv6 -bundle -undefined dynamic_lookup $(ISYSROOT)
+-    LIBS += -lc 
++    LIBS += -lc
+     STRIP = strip -x
+     DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION)
+     DISTBINDIR=$(DISTDIR)-$(OS)
+@@ -92,7 +92,7 @@
+     CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \
+       -I/Applications/Pd-extended.app/Contents/Resources/include
+     LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib
+-    LIBS += -lc 
++    LIBS += -lc
+     STRIP = strip -x
+     DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION)
+     DISTBINDIR=$(DISTDIR)-$(OS)
+@@ -143,7 +143,7 @@
+   EXTENSION = dll
+   OS = cygwin
+   OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer
+-  CFLAGS += 
++  CFLAGS +=
+   LDFLAGS += -Wl,--export-dynamic -shared -L$(PD_PATH)/src
+   LIBS += -lc -lpd
+   STRIP = strip --strip-unneeded -R .note -R .comment
diff --git a/debian/patches/series b/debian/patches/series
index c7b84dc..0bf5117 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 fix_makefile.patch
 hurd_fixes.patch
 kfreebsd_fixes.patch
+hardening.patch

-- 
pd-iemnet packaging



More information about the pkg-multimedia-commits mailing list