[DTrace-devel] [PATCH 04/14] build: substitute LIBDIR in pkg-config files

Nick Alcock nick.alcock at oracle.com
Thu Oct 24 11:37:48 UTC 2024


/usr/share/pkgconfig/dtrace.pc says

libdir = @LIBDIR@
/* ... */
Libs: -L${libdir} -ldtrace

which is unlikely to work.

Fix by substituting LIBDIR properly.

(I looked at these pkg-config files after installation I don't know how many
times and never once spotted this incredibly obvious problem.)

Signed-off-by: Nick Alcock <nick.alcock at oracle.com>
Bug: https://github.com/oracle/dtrace-utils/issues/104
---
 uts/Build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/uts/Build b/uts/Build
index 181819410624..65ddc39845c1 100644
--- a/uts/Build
+++ b/uts/Build
@@ -37,6 +37,7 @@ install::
 		(cd $(uts_DIR) && \
 		    sed -e 's, at SDTINCLUDEDIR@,$(SDTINCLUDEDIR),g;' \
 			-e 's, at INCLUDEDIR@,$(INCLUDEDIR),g;' \
+			-e 's, at LIBDIR@,$(LIBDIR),g;' \
 			-e 's, at VERSION@,$(VERSION),g;' \
 			-e 's, at DTRACE@,$(SBINDIR)/dtrace,g' < \
 			$${name}.in > $(INSTPKGCONFIGDIR)/$$name;) \
-- 
2.46.0.278.g36e3a12567




More information about the DTrace-devel mailing list