summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Nagy <robert@openbsd.org>2011-04-05 11:59:42 +0200
committerRobert Nagy <robert@openbsd.org>2011-04-05 11:59:42 +0200
commit149bb82c280a7846981793714d9111a83119798d (patch)
treeb2a780b8487a42a63be5310dbaa16a4d47f6e552
parentea42ff666f7ab3f62c5e423d5b4d98fddb460f66 (diff)
link to the correct libraries on *BSD too
-rw-r--r--padmin/Library_spa.mk9
-rw-r--r--toolkit/Library_tk.mk2
2 files changed, 8 insertions, 3 deletions
diff --git a/padmin/Library_spa.mk b/padmin/Library_spa.mk
index 6827729d5d8d..82b3e4e8a45d 100644
--- a/padmin/Library_spa.mk
+++ b/padmin/Library_spa.mk
@@ -62,12 +62,17 @@ $(eval $(call gb_Library_add_exception_objects,spa,\
padmin/source/titlectrl \
))
-ifeq ($(OS),LINUX)
+ifneq (,$(filter LINUX DRAGONFLY OPENBSD FREEBSD NETBSD, $(OS)))
$(eval $(call gb_Library_add_linked_libs,spa,\
- dl \
m \
pthread \
))
endif
+ifeq ($(OS),LINUX)
+$(eval $(call gb_Library_add_linked_libs,spa,\
+ dl \
+))
+endif
+
# vim: set noet sw=4 ts=4:
diff --git a/toolkit/Library_tk.mk b/toolkit/Library_tk.mk
index 15c8692c1ca1..1a94bbd21ab1 100644
--- a/toolkit/Library_tk.mk
+++ b/toolkit/Library_tk.mk
@@ -163,7 +163,7 @@ $(eval $(call gb_Library_set_cxxflags,tk,\
$$(CXXFLAGS) $(gb_OBJCXXFLAGS)))
endif
-ifeq ($(OS),LINUX)
+ifneq (,$(filter LINUX DRAGONFLY OPENBSD FREEBSD NETBSD, $(OS)))
$(eval $(call gb_Library_add_linked_libs,tk,\
X11 \
))