blob: fbfe845dda49fdac9318a696043937ac0be4cfd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
Description: Add Makefile option for BSDDIR
Debian does not store libbsd headers directly at /usr/include/bsd; it
stores them elsewhere.
.
Use this patch to find it or else be able to set it on the Make
invocation with `make BSDDIR=/path/to/libbsd/include/bsd`
Author: B. Stack <bgstack15@gmail.com>
Origin: Devuan
Last-Update: 2024-03-20
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ PREFIX?=/usr/local
CFLAGS+= -Wall -Werror -Wextra -I${PREFIX}/include
LDFLAGS+= -L${PREFIX}/lib
LIBS= -lm
+BSDDIR :=$(shell find /usr/include -name bsd -type d -quit)
OS!=uname
@@ -28,7 +29,7 @@ help:
configure:
@ \
if [ "x${OS}" = x"Linux" ]; then \
- if [ ! -d /usr/include/bsd ] && [ ! -d ${PREFIX}/include/bsd ]; then \
+ if [ ! -d /usr/include/bsd ] && [ ! -d ${PREFIX}/include/bsd ] && [ ! -d ${BSDDIR} ] ; then \
echo "Please install 'libbsd' and 'libbsd-devel'." >&2; \
exit 1; \
fi; \
|