gerbera: fix build on macos
authorSergey V. Lobanov <[email protected]>
Mon, 10 Jan 2022 19:27:23 +0000 (22:27 +0300)
committerRosen Penev <[email protected]>
Tue, 11 Jan 2022 01:06:45 +0000 (17:06 -0800)
cmake LINK_WHAT_YOU_USE is not supported on macos, disable it if
macos is used to build gerbera package

compiled binary (sha256sum) exactly the same on macos and ubuntu

Signed-off-by: Sergey V. Lobanov <[email protected]>
multimedia/gerbera/Makefile

index cb1ad234014c1c18be7e70c94df9ff92cb2552cf..67b7eb7407f3ad61ad4d944a12f3c5969daab1de 100644 (file)
@@ -44,7 +44,7 @@ define Package/gerbera/conffiles
 endef
 
 CMAKE_OPTIONS += \
-       -DCMAKE_LINK_WHAT_YOU_USE=ON \
+       -DCMAKE_LINK_WHAT_YOU_USE=$(if $(CONFIG_HOST_OS_MACOS),OFF,ON) \
        -DIconv_INCLUDE_DIR=$(ICONV_PREFIX)/include \
        -DIconv_LIBRARY=$(ICONV_PREFIX)/lib/libiconv.a \
        -DWITH_MAGIC=ON \