summaryrefslogtreecommitdiff
path: root/sal/Library_sal.mk
diff options
context:
space:
mode:
Diffstat (limited to 'sal/Library_sal.mk')
-rw-r--r--sal/Library_sal.mk13
1 files changed, 8 insertions, 5 deletions
diff --git a/sal/Library_sal.mk b/sal/Library_sal.mk
index c42728ff9ac1..1d6f75431cca 100644
--- a/sal/Library_sal.mk
+++ b/sal/Library_sal.mk
@@ -57,11 +57,6 @@ $(eval $(call gb_Library_add_defs,sal,\
))
$(eval $(call gb_Library_use_libraries,sal,\
- $(if $(filter $(GUI),UNX), \
- $(if $(filter $(OS),ANDROID),, \
- pthread \
- ) \
- ) \
$(if $(filter $(OS),LINUX), \
dl \
) \
@@ -84,6 +79,14 @@ $(eval $(call gb_Library_use_libraries,sal,\
$(gb_UWINAPI) \
))
+$(eval $(call gb_Library_add_libs,sal,\
+ $(if $(filter $(GUI),UNX), \
+ $(if $(filter $(OS),ANDROID),, \
+ -lpthread \
+ ) \
+ ) \
+))
+
$(eval $(call gb_Library_add_standard_system_libs,sal))
ifeq ($(OS),MACOSX)