]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
autotools: optionally add libpthread to uuid.pc
authorBernd Kuhls <bernd@kuhls.net>
Fri, 16 Jan 2026 22:33:34 +0000 (23:33 +0100)
committerBernd Kuhls <bernd@kuhls.net>
Fri, 16 Jan 2026 22:49:41 +0000 (23:49 +0100)
Fixes https://github.com/util-linux/util-linux/issues/3210#issuecomment-3477915953

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Makefile.am
libuuid/uuid.pc.in

index 907745489c4f321635642cf70110d461c255cdd2..99384a1c27d293a52003d11293e8589a6b4b1a04 100644 (file)
@@ -189,6 +189,7 @@ edit_cmd = sed \
         -e 's|@usrlib_execdir[@]|$(usrlib_execdir)|g' \
         -e 's|@usrbin_execdir[@]|$(usrbin_execdir)|g' \
         -e 's|@usrsbin_execdir[@]|$(usrsbin_execdir)|g' \
+        -e 's|@PTHREAD_LIBS[@]|$(PTHREAD_LIBS)|g' \
         -e 's|@SYSTEMD_USER_LOCK[@]|$(SYSTEMD_USER_LOCK)|g' \
         -e 's|@SOCKET_LIBS[@]|$(SOCKET_LIBS)|g' \
         -e 's|@VERSION[@]|$(VERSION)|g' \
index 51929fe80d72e593775bb6554c7172aff0cb8e3f..a40dc66445bb5ad13cf77d0441b23981972f9c7e 100644 (file)
@@ -7,5 +7,5 @@ Name: uuid
 Description: Universally unique id library
 Version: @LIBUUID_VERSION@
 Cflags: -I${includedir}/uuid
-Libs.private: @SOCKET_LIBS@ -lpthread
+Libs.private: @SOCKET_LIBS@ @PTHREAD_LIBS@
 Libs: -L${libdir} -luuid