aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2020-07-06 10:49:31 +0100
committerAlex Bennée <alex.bennee@linaro.org>2020-08-05 11:57:36 +0100
commit5605354d8e4435f36a6417f164758b1d5f37722d (patch)
treeda3e54faf502dd22d795fce9e7c9113919e2fbab
parentcd352ddc152160a4485c43e639a56bf357056163 (diff)
tools/rpmb: work around bug
https://sourceware.org/legacy-ml/glibc-bugs/2018-09/msg00009.html https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87189 Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
-rw-r--r--tools/rpmb/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/rpmb/Makefile b/tools/rpmb/Makefile
index 69fdd6a36556..8342b93cf3e0 100644
--- a/tools/rpmb/Makefile
+++ b/tools/rpmb/Makefile
@@ -20,7 +20,7 @@ CFLAGS += $(HOSTCFLAGS)
CFLAGS += -D__EXPORTED_HEADERS__
CFLAGS += -Wall -Wextra
ifdef RPMB_STATIC
-LDFLAGS += -pthread -static
+LDFLAGS += -pthread -static -Wl,-u,pthread_mutex_unlock
CFLAGS += -pthread -static
PKG_STATIC = --static
endif