aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-03-26 23:39:53 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-03-26 23:39:53 +0000
commitc3c393667014617ff74903e4045c9282d2805abd (patch)
tree39165a91f99a8067dbd3090019fbb3581cf31e4a /Makefile
parent6f69e5d4b0c08453dcec16b9c03829dc530809f3 (diff)
downloadbcnm-c3c393667014617ff74903e4045c9282d2805abd.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: