Commit 97a35e98 authored by Axel Beckert's avatar Axel Beckert

Patch to properly pass dpkg-buildflags variables

parent cbb29af6
......@@ -2,6 +2,10 @@ since (1.1-3) UNRELEASED; urgency=low
* Bump debhelper compatibility to 9
- Update versioned debhelper build-dependency
* Patch upstream Makefile to
- don't overwrite already set variables
- pass additional variables (CPPFLAGS, LDFLAGS)
Fixes lintian warnings hardening-no-{relro,fortify-functions}
-- Axel Beckert <abe@debian.org> Fri, 17 May 2013 00:47:48 +0200
......
Description: Properly pass dpkg-buildflags variables
* Don't overwrite already set variables
* Pass additional variables (CPPFLAGS, LDFLAGS)
Fixes lintian warnings hardening-no-{relro,fortify-functions}
Author: Axel Beckert <abe@debian.org>
Index: since/Makefile
===================================================================
--- since.orig/Makefile 2013-05-17 00:44:51.922569312 +0200
+++ since/Makefile 2013-05-17 00:59:42.954851043 +0200
@@ -4,18 +4,18 @@
NAME = since
VERSION = 1.1
-CFLAGS = -Wall -O2 -DVERSION=\"$(VERSION)\"
+CFLAGS += -DVERSION=\"$(VERSION)\"
# disable/enable as desired
CFLAGS += $(shell test -f /usr/include/sys/inotify.h && echo -DUSE_INOTIFY)
CFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
#CFLAGS += -DDEBUG
-CC = gcc
+CC ?= gcc
RM = rm -f
INSTALL = install -D
$(NAME): $(NAME).c
- $(CC) $(CFLAGS) -o $@ $^
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^
install: $(NAME)
$(INSTALL) $(NAME) $(prefix)/bin/$(NAME)
hurd-path-max.patch
optimize-makefile.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment