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:
committed by
Lauri Kasanen
parent
06fd7ac061
commit
a11a55aeec
@@ -27,6 +27,9 @@ if(BUILD_STATIC)
|
||||
# gettext is included in libc on many unix systems
|
||||
if(NOT LIBC_HAS_DGETTEXT)
|
||||
set(GETTEXT_LIBRARIES "-Wl,-Bstatic -lintl -liconv -Wl,-Bdynamic")
|
||||
if(APPLE)
|
||||
set(GETTEXT_LIBRARIES "${GETTEXT_LIBRARIES} -framework Carbon")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(GNUTLS_FOUND)
|
||||
|
||||
Reference in New Issue
Block a user