Commit 5106686d authored by Peter Pentchev's avatar Peter Pentchev

Let dpkg-buildflags take care of LFS.

parent 45f842eb
......@@ -2,6 +2,7 @@ libdebug (0.5.2-2) UNRELEASED; urgency=medium
* Declare compliance with Debian Policy 4.1.3 with no changes.
* Add "Rules-Requires-Root: no" to the source control stanza.
* Let dpkg-buildflags take care of Large File Support.
-- Peter Pentchev <roam@ringlet.net> Mon, 15 Jan 2018 16:02:45 +0200
......
#!/usr/bin/make -f
# Aim for the top, adapt if anything should break on the buildds.
DEB_BUILD_MAINT_OPTIONS= hardening=+all
DEB_BUILD_MAINT_OPTIONS= hardening=+all future=+lfs
export DEB_BUILD_MAINT_OPTIONS
# Large File Support
LFS_CFLAGS:= $(shell getconf LFS_CFLAGS 2>/dev/null || echo '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64')
LFS_LDFLAGS:= $(shell getconf LFS_LDFLAGS 2>/dev/null || true)
DEB_CFLAGS_MAINT_APPEND= ${LFS_CFLAGS}
DEB_CFLAGS_MAINT_APPEND+= -pipe -Wall -W -Wbad-function-cast \
DEB_CFLAGS_MAINT_APPEND= -pipe -Wall -W -Wbad-function-cast \
-Wcast-align -Wcast-qual -Wchar-subscripts -Winline \
-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
......@@ -17,9 +12,7 @@ ifneq (,$(filter werror,$(DEB_BUILD_OPTIONS)))
DEB_CFLAGS_MAINT_APPEND+= -Werror
endif
DEB_LDFLAGS_MAINT_APPEND= ${LFS_LDFLAGS}
export DEB_CFLAGS_MAINT_APPEND DEB_LDFLAGS_MAINT_APPEND
export DEB_CFLAGS_MAINT_APPEND
_STRIP= no
export _STRIP
......
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