From: Sven Höxter Date: Fri, 6 Sep 2019 13:35:46 +0000 (+0200) Subject: use CFLAGS from environment X-Git-Tag: debian/1.5-1~4 X-Git-Url: https://git.sven.stormbind.net/?p=sven%2Fjattach.git;a=commitdiff_plain;h=e2453baae44379bfd97a3b0e02807e76fed4112b use CFLAGS from environment --- diff --git a/Makefile b/Makefile index 8fd6d4d..d2f9219 100644 --- 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 index 0000000..a5b351f --- /dev/null +++ b/debian/patches/do-not-override-CFLAGS @@ -0,0 +1,15 @@ +Description: do not override CFLAGS + By default the Makefile ignores the CFLAGS as + exported by dh. +Author: Sven Hoexter + +--- 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 index 0000000..b96a296 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +do-not-override-CFLAGS