]> git.sven.stormbind.net Git - sven/jattach.git/commitdiff
use CFLAGS from environment
authorSven Höxter <sven.hoexter@rewe-digital.com>
Fri, 6 Sep 2019 13:35:46 +0000 (15:35 +0200)
committerSven Höxter <sven.hoexter@rewe-digital.com>
Fri, 6 Sep 2019 13:40:10 +0000 (15:40 +0200)
Makefile
debian/patches/do-not-override-CFLAGS [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]

index 8fd6d4dee1ca4a2633e81d697ba538cd14959966..d2f921934665faaa057542ec8af804580aa5ad0f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,6 @@ else
     SOURCES=$(RPM_ROOT)/SOURCES
     SPEC_FILE=jattach.spec
     CC=gcc
-    CFLAGS=-O2
     JATTACH_EXE=jattach
   endif
 endif
diff --git a/debian/patches/do-not-override-CFLAGS b/debian/patches/do-not-override-CFLAGS
new file mode 100644 (file)
index 0000000..a5b351f
--- /dev/null
@@ -0,0 +1,15 @@
+Description: do not override CFLAGS
+ By default the Makefile ignores the CFLAGS as
+ exported by dh.
+Author: Sven Hoexter <hoexter@debian.org>
+
+--- jattach-1.5.orig/Makefile
++++ jattach-1.5/Makefile
+@@ -16,7 +16,6 @@ else
+     SOURCES=$(RPM_ROOT)/SOURCES
+     SPEC_FILE=jattach.spec
+     CC=gcc
+-    CFLAGS=-O2
+     JATTACH_EXE=jattach
+   endif
+ endif
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..b96a296
--- /dev/null
@@ -0,0 +1 @@
+do-not-override-CFLAGS