1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
From: Fernando Furusato <ferseiti@linux.vnet.ibm.com>
Date: Thu, 28 Nov 2024 18:15:43 +0100
Subject: Use -pthread instead of -lpthread
---
lib/Makefile | 2 +-
misc/Makefile | 2 +-
tools/Makefile | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/Makefile b/lib/Makefile
index c17522b..c96de70 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -20,7 +20,7 @@ zlibver=1.2.8
libversion = $(VERSION)
CFLAGS += -fPIC -fno-strict-aliasing
-LDLIBS += -lpthread -ldl -lrt
+LDLIBS += -pthread -ldl -lrt
# If we use libcxl, we need to reflect that to avoid underlinkage
ifeq ($(WITH_LIBCXL),1)
diff --git a/misc/Makefile b/misc/Makefile
index 8dcecbd..90ce47a 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -19,7 +19,7 @@ include ../config.mk
LDLIBS += -lzADC
LDFLAGS += -L../lib -Wl,-rpath,lib
-zpipe_mt_libs = -lpthread
+zpipe_mt_libs = -pthread
projs = zpipe zpipe_mt zpipe_append zpipe_rnd
diff --git a/tools/Makefile b/tools/Makefile
index b1471fa..834b8d4 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -18,7 +18,7 @@ include ../config.mk
DESTDIR ?= /usr
libs = ../lib/libDDCB.a ../lib/libzHW.a ../lib/libcard.a
-LDLIBS += $(libs) -lpthread -lrt
+LDLIBS += $(libs) -pthread -lrt
ifeq ($(BUILD_AGZIP_TOOLS),1)
LDLIBS += -ljson-c
|