Skip to content
Browse files

Enable support for buildflags

  • Loading branch information...
1 parent d601b83 commit d79e1a4c6d073fd30ce1e7f6a83d024e14c54ba1 @ebroder ebroder committed Oct 31, 2011
Showing with 18 additions and 1 deletion.
  1. +1 −0 debian/changelog
  2. +1 −1 debian/control
  3. +12 −0 debian/patches/accept-cmd-line-build-flags.patch
  4. +1 −0 debian/patches/series
  5. +3 −0 debian/rules
View
1 debian/changelog
@@ -2,6 +2,7 @@ reptyr (0.3-2) UNRELEASED; urgency=low
* Bump standards version to 3.9.2 (no changes).
* Build for armhf (Closes: #633750)
+ * Enable support for buildflags
-- Evan Broder <evan@ebroder.net> Wed, 13 Jul 2011 09:08:15 -0700
View
2 debian/control
@@ -2,7 +2,7 @@ Source: reptyr
Section: misc
Priority: optional
Maintainer: Evan Broder <evan@ebroder.net>
-Build-Depends: debhelper (>= 7.0.50~)
+Build-Depends: debhelper (>= 7.0.50~), dpkg-dev (>= 1.16.1~)
Standards-Version: 3.9.2
Homepage: https://github.com/nelhage/reptyr
Vcs-Git: git://github.com/nelhage/reptyr.git
View
12 debian/patches/accept-cmd-line-build-flags.patch
@@ -0,0 +1,12 @@
+Description: Accept build flags from the make command line
+Author: Evan Broder <evan@ebroder.net>
+Bug: https://github.com/nelhage/reptyr/pull/14
+
+--- reptyr-0.3.orig/Makefile
++++ reptyr-0.3/Makefile
+@@ -1,4 +1,4 @@
+-CFLAGS=-Wall -Werror -D_GNU_SOURCE -g
++override CFLAGS+=-Wall -Werror -D_GNU_SOURCE -g
+ OBJS=reptyr.o ptrace.o attach.o
+
+ PREFIX=/usr/local
View
1 debian/patches/series
@@ -0,0 +1 @@
+accept-cmd-line-build-flags.patch
View
3 debian/rules
@@ -3,5 +3,8 @@
%:
dh $@
+override_dh_auto_build:
+ dh_auto_build -- $(shell dpkg-buildflags --export=configure)
+
override_dh_auto_install:
dh_auto_install -- PREFIX=/usr

0 comments on commit d79e1a4

Please sign in to comment.
Something went wrong with that request. Please try again.