aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-03-26 18:08:54 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-03-26 18:08:54 +0000
commit024a555c5553abe5ea8b962bedba5dc2c79daf3a (patch)
treea1c90411e10bcbd40b2f89540ef0847dab1d6439 /Makefile
parent256eeb41370170715ed8359260b822c42c3360d4 (diff)
downloads6-linux-utils-024a555c5553abe5ea8b962bedba5dc2c79daf3a.tar.gz
AI policies, better -lskarnet error message
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a8af4b4..f519a87 100644
--- a/Makefile
+++ b/Makefile
@@ -42,6 +42,7 @@ endif
lib$(2).pc:
exec env \
+ prefix="$(prefix)" \
library="$(2)" \
includedir="$(includedir)" \
dynlibdir="$(dynlibdir)" \
@@ -189,6 +190,9 @@ lib%.a.xyzzy:
lib%.so.xyzzy:
exec $(CC) -o $@ $(CFLAGS_ALL) $(CFLAGS_SHARED) $(LDFLAGS_ALL) $(LDFLAGS_SHARED) -Wl,-soname,$(patsubst lib%.so.xyzzy,lib%.so.$(version_M),$@) -Wl,-rpath=$(dynlibdir) $^ $(EXTRA_LIBS) $(LDLIBS)
+-lskarnet:
+ $(error Unable to link against skalibs. Check that you are using the correct --with-lib or --with-dynlib options; see ./configure --help)
+
.PHONY: it all clean distclean tests check tgz strip install install-dynlib install-bin install-lib install-include install-pkgconfig
.DELETE_ON_ERROR: