Files
meta-openembedded/meta-oe/recipes-support/lockdev/lockdev/cross_compile.patch
Khem Raj 89461fecb7 lockdev: Make baselib configurable
This ensures that baselib can be passed from bitbake tasks via
environment

Refresh patches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-20 16:07:50 -08:00

28 lines
604 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -15,17 +15,18 @@ shared = ${libname}.${VER}.so
soname = ${libname}.so.${MVER}
# overwritten by caller (e.g.: debian/rules)
-basedir = /usr/local
+basedir ?= /usr/local
+baselib ?= lib
srcdir=.
-libdir = ${basedir}/lib
+libdir = ${basedir}/${baselib}
incdir = ${basedir}/include
mandir = ${basedir}/share/man
-CC = gcc
-LCFLAGS = -g -O2 -fPIC -Wall -pipe -D_REENTRANT
-CFLAGS = -g
-LDLIBS = -llockdev
+CC ?= gcc
+LCFLAGS ?= -g -O2 -fPIC -Wall -pipe -D_REENTRANT
+CFLAGS ?= -g
+LDLIBS ?= -llockdev
.PHONY: shared static perl-lib
ALL: shared static perl-lib