summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sal/Library_sal.mk4
-rw-r--r--solenv/gbuild/platform/macosx.mk1
2 files changed, 3 insertions, 2 deletions
diff --git a/sal/Library_sal.mk b/sal/Library_sal.mk
index 93bc64649a88..6f940db15ad7 100644
--- a/sal/Library_sal.mk
+++ b/sal/Library_sal.mk
@@ -56,10 +56,12 @@ $(eval $(call gb_Library_add_defs,sal,\
$(eval $(call gb_Library_add_linked_libs,sal,\
$(if $(filter $(GUI),UNX), \
$(if $(filter $(OS),ANDROID),, \
- dl \
pthread \
) \
) \
+ $(if $(filter $(OS),LINUX), \
+ dl \
+ ) \
$(if $(filter $(OS),SOLARIS), \
nsl \
socket \
diff --git a/solenv/gbuild/platform/macosx.mk b/solenv/gbuild/platform/macosx.mk
index f7f344001ce0..ef82a823a8a8 100644
--- a/solenv/gbuild/platform/macosx.mk
+++ b/solenv/gbuild/platform/macosx.mk
@@ -265,7 +265,6 @@ gb_Library_PLAINLIBS_NONE += \
Cocoa \
objc \
OpenGL \
- dl \
m \
pthread \