Include Carbon when statically linking gettext on macOS

As gettext needs some stuff from Carbon and we don't want to rely on it
being pulled in as a side effect.
This commit is contained in:
Pierre Ossman 2020-01-30 14:23:24 +01:00 committed by Lauri Kasanen
parent 06fd7ac061
commit a11a55aeec

View File

@ -27,6 +27,9 @@ if(BUILD_STATIC)
# gettext is included in libc on many unix systems # gettext is included in libc on many unix systems
if(NOT LIBC_HAS_DGETTEXT) if(NOT LIBC_HAS_DGETTEXT)
set(GETTEXT_LIBRARIES "-Wl,-Bstatic -lintl -liconv -Wl,-Bdynamic") set(GETTEXT_LIBRARIES "-Wl,-Bstatic -lintl -liconv -Wl,-Bdynamic")
if(APPLE)
set(GETTEXT_LIBRARIES "${GETTEXT_LIBRARIES} -framework Carbon")
endif()
endif() endif()
if(GNUTLS_FOUND) if(GNUTLS_FOUND)