chiark / gitweb /
Build system: Add -I$(DESTDIR)$(PREFIX)/include to devLib Makefile
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 26 Sep 2015 01:32:37 +0000 (01:32 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 5 Oct 2015 13:20:49 +0000 (14:20 +0100)
This makes sure it picks up the in-tree copies during a Debian source
package build.

In non Debian-source-package builds this makes no difference, because
DESTDIR=/usr and PREFIX=/local so it's just -I/usr/local/include.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
devLib/Makefile

index 6430c9f848e4ee9536a376d201b5d3fab7755c41..0dcbae9c822b8675d12e0126cb55b8c5e5928a31 100644 (file)
@@ -22,6 +22,8 @@ wiringpi (2.28~iwj1) unstable; urgency=medium
     and do not compress any of them.
   * Add `Replaces: wiringpi' to the other packages, to smooth the upgrade
     from the pre-split packages.
+  * Add -I$(DESTDIR)$(PREFIX)/include to devLib Makefile to make sure
+    it picks up the in-tree copies during a Debian source package build.
 
  --
 
index 0fb00336f7e1873af49df46d166ddf105355ec65..4f853a4710e9df8a1efe258699842052cdeb9f02 100644 (file)
@@ -37,7 +37,7 @@ DYNAMIC=libwiringPiDev.so.$(VERSION)
 #DEBUG = -g -O0
 DEBUG  = -O2
 CC     = gcc
-INCLUDE        = -I.
+INCLUDE        = -I. -I$(DESTDIR)$(PREFIX)/include
 DEFS   = -D_GNU_SOURCE
 CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Winline $(INCLUDE) -pipe -fPIC