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

Nick Alcock nick.alcock at oracle.com
Mon Oct 28 21:17:53 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.)

Bug: https://github.com/oracle/dtrace-utils/issues/104
Signed-off-by: Nick Alcock <nick.alcock at oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>
---
 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