summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-09-21 02:17:13 +0100
committerSam James <sam@gentoo.org>2022-09-21 02:24:44 +0100
commitb5760171b4f4159669224f6a31652f1c781a517b (patch)
tree282c378daf99c700aef9c79705eb39d18c4b90eb /app-text/texlive-core/files
parentsci-mathematics/pari: bullet-proof DLLD detection. (diff)
downloadgentoo-b5760171b4f4159669224f6a31652f1c781a517b.tar.gz
gentoo-b5760171b4f4159669224f6a31652f1c781a517b.tar.bz2
gentoo-b5760171b4f4159669224f6a31652f1c781a517b.zip
app-text/texlive-core: fix build with LTO using llvm-strings
Bug in bundled Cairo, already fixed in x11-libs/cairo. Bug: https://bugs.gentoo.org/726200 Closes: https://bugs.gentoo.org/853121 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-text/texlive-core/files')
-rw-r--r--app-text/texlive-core/files/texlive-core-2021-cairo-strings.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/app-text/texlive-core/files/texlive-core-2021-cairo-strings.patch b/app-text/texlive-core/files/texlive-core-2021-cairo-strings.patch
new file mode 100644
index 000000000000..07ca8933facf
--- /dev/null
+++ b/app-text/texlive-core/files/texlive-core-2021-cairo-strings.patch
@@ -0,0 +1,34 @@
+https://bugs.gentoo.org/853121
+https://bugs.gentoo.org/726200
+--- a/libs/cairo/m4/float.m4
++++ b/libs/cairo/m4/float.m4
+@@ -22,23 +22,24 @@ AC_DEFUN([AX_C_FLOAT_WORDS_BIGENDIAN],
+ # file, the target platform stores float words in big-endian order. If grep
+ # finds "seesnoon", float words are in little-endian order. If neither value
+ # is found, the user is instructed to specify the ordering.
+
+ ax_cv_c_float_words_bigendian=unknown
+-AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
++AC_LINK_IFELSE([AC_LANG_SOURCE([[
+
+-double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0;
++double d __attribute__((used)) = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0;
++int main() { return 0; }
+
+ ]])], [
+
+ # allow users to override default 'strings' with 'llvm-strings'
+ # or ${CHOST}-strings.
+ AC_CHECK_TOOL([STRINGS], [strings])
+-if $STRINGS - conftest.$ac_objext | grep noonsees >/dev/null ; then
++if $STRINGS - conftest | grep noonsees >/dev/null ; then
+ ax_cv_c_float_words_bigendian=yes
+ fi
+-if $STRINGS - conftest.$ac_objext | grep seesnoon >/dev/null ; then
++if $STRINGS - conftest | grep seesnoon >/dev/null ; then
+ if test "$ax_cv_c_float_words_bigendian" = unknown; then
+ ax_cv_c_float_words_bigendian=no
+ else
+ ax_cv_c_float_words_bigendian=unknown
+ fi
+