diff --git a/sd/Library_sd.mk b/sd/Library_sd.mk index f74514bb8f1d..21a4ab8e0c73 100644 --- a/sd/Library_sd.mk +++ b/sd/Library_sd.mk @@ -95,12 +95,13 @@ $(eval $(call gb_Library_use_libraries,sd,\ )) ifeq ($(OS), LINUX) -ifeq ($(ENABLE_AVAHI),TRUE) $(eval $(call gb_Library_use_externals,sd,\ boost_headers \ libxml2 \ dbus \ - avahi \ + $(if $(ENABLE_AVAHI), \ + avahi \ + ) \ )) else $(eval $(call gb_Library_use_externals,sd,\ @@ -109,13 +110,6 @@ $(eval $(call gb_Library_use_externals,sd,\ dbus \ )) endif -else -$(eval $(call gb_Library_use_externals,sd,\ - boost_headers \ - libxml2 \ - dbus \ -)) -endif ifeq ($(OS),WNT) $(eval $(call gb_Library_use_system_win32_libs,sd,\