From: Ian Jackson Date: Sat, 26 Sep 2015 01:32:37 +0000 (+0000) Subject: Build system: Add -I$(DESTDIR)$(PREFIX)/include to devLib Makefile X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=90427f61602bcc63d069c38b0f3498292030c291;hp=09a738279d8a11c8bd59d55570927587bbca1dcd;p=wiringPi.git 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 --- 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