From 90427f61602bcc63d069c38b0f3498292030c291 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 26 Sep 2015 01:32:37 +0000 Subject: [PATCH] Build system: Add -I$(DESTDIR)$(PREFIX)/include to devLib Makefile 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 --- debian/changelog | 2 ++ devLib/Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 6430c9f..0dcbae9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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. -- diff --git a/devLib/Makefile b/devLib/Makefile index 0fb0033..4f853a4 100644 --- a/devLib/Makefile +++ b/devLib/Makefile @@ -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 -- 2.30.2