OpenMiInk/third_party/krita-deps-management/ext_gettext/0001-Fix-libgettextpo-linking-on-macOS.patch
Hellings b8c8ff98e2 Hi
2026-10-16 09:05:56 -04:00

68 lines
3.5 KiB
Diff
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- a/gettext-tools/libgettextpo/Makefile.am 2020-07-26 20:31:02.000000000 +0000
+++ b/gettext-tools/libgettextpo/Makefile.am 2020-07-26 20:31:02.000000000 +0000
@@ -107,7 +107,25 @@
# How to build libgettextpo.la.
# Don't make it depend on libgettextsrc.la or libgettextlib.la, since they
# define an uncontrolled amount of symbols.
-libgettextpo_la_LIBADD = libgnu.la $(WOE32_LIBADD) $(LTLIBUNISTRING)
+# Amyspark: Need @LTLIBTEXTSTYLE@ because in macOS the linker will complain:
+# Undefined symbols for architecture x86_64:
+# "_file_ostream_create", referenced from:
+# _msgdomain_list_print in write-catalog.o
+# "_ostream_free", referenced from:
+# _msgdomain_list_print in write-catalog.o
+# "_ostream_write_mem", referenced from:
+# _message_print_comment in write-po.o
+# _wrap in write-po.o
+# "_ostream_write_str", referenced from:
+# _message_print_comment in write-po.o
+# _message_print_comment_dot in write-po.o
+# _message_print_comment_filepos in write-po.o
+# _message_print_comment_flags in write-po.o
+# _msgdomain_list_print_po in write-po.o
+# _wrap in write-po.o
+# ld: symbol(s) not found for architecture x86_64
+# clang: error: linker command failed with exit code 1 (use -v to see invocation)
+libgettextpo_la_LIBADD = libgnu.la ../../libtextstyle/lib/libtextstyle.la $(WOE32_LIBADD) $(LTLIBUNISTRING)
libgettextpo_la_LDFLAGS = \
-version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
-rpath $(libdir) \
--- a/gettext-tools/libgettextpo/Makefile.in 2020-07-26 21:04:58.000000000 +0000
+++ b/gettext-tools/libgettextpo/Makefile.in 2020-07-26 21:04:58.000000000 +0000
@@ -557,7 +555,8 @@
LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES)
@WOE32_TRUE@am__DEPENDENCIES_1 = libgettextpo.res.lo
am__DEPENDENCIES_2 =
-libgettextpo_la_DEPENDENCIES = libgnu.la $(am__DEPENDENCIES_1) \
+libgettextpo_la_DEPENDENCIES = libgnu.la \
+ ../../libtextstyle/lib/libtextstyle.la $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_2)
am__libgettextpo_la_SOURCES_DIST = gettext-po.c ../src/str-list.c \
../src/dir-list.c ../src/message.c ../src/msgl-ascii.c \
@@ -2545,7 +2544,25 @@
# How to build libgettextpo.la.
# Don't make it depend on libgettextsrc.la or libgettextlib.la, since they
# define an uncontrolled amount of symbols.
-libgettextpo_la_LIBADD = libgnu.la $(WOE32_LIBADD) $(LTLIBUNISTRING)
+# Amyspark: Need @LTLIBTEXTSTYLE@ because in macOS the linker will complain:
+# Undefined symbols for architecture x86_64:
+# "_file_ostream_create", referenced from:
+# _msgdomain_list_print in write-catalog.o
+# "_ostream_free", referenced from:
+# _msgdomain_list_print in write-catalog.o
+# "_ostream_write_mem", referenced from:
+# _message_print_comment in write-po.o
+# _wrap in write-po.o
+# "_ostream_write_str", referenced from:
+# _message_print_comment in write-po.o
+# _message_print_comment_dot in write-po.o
+# _message_print_comment_filepos in write-po.o
+# _message_print_comment_flags in write-po.o
+# _msgdomain_list_print_po in write-po.o
+# _wrap in write-po.o
+# ld: symbol(s) not found for architecture x86_64
+# clang: error: linker command failed with exit code 1 (use -v to see invocation)
+libgettextpo_la_LIBADD = libgnu.la ../../libtextstyle/lib/libtextstyle.la $(WOE32_LIBADD) $(LTLIBUNISTRING)
libgettextpo_la_LDFLAGS = -version-info \
$(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) -rpath $(libdir) \
@LTLIBINTL@ @LTLIBICONV@ -lc -no-undefined $(am__append_2) \