From e2453baae44379bfd97a3b0e02807e76fed4112b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20H=C3=B6xter?= Date: Fri, 6 Sep 2019 15:35:46 +0200 Subject: [PATCH] use CFLAGS from environment --- Makefile | 1 - debian/patches/do-not-override-CFLAGS | 15 +++++++++++++++ debian/patches/series | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 debian/patches/do-not-override-CFLAGS create mode 100644 debian/patches/series 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 -- 2.39.5