diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-12 06:46:08 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-12 06:46:08 +0000 |
commit | c6e62298405d39e635c0d8dd6e026c8cb667a478 (patch) | |
tree | 797bd877e6cc2cdcfe3e39ecfedf34781075fc86 /media-gfx/potrace/files | |
parent | 2c3b9bbdb114cc13b6ef8e0e5933c9e374fca8b6 (diff) |
gentoo auto-resync : 12:03:2024 - 06:46:08
Diffstat (limited to 'media-gfx/potrace/files')
-rw-r--r-- | media-gfx/potrace/files/potrace-1.16-lto.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/media-gfx/potrace/files/potrace-1.16-lto.patch b/media-gfx/potrace/files/potrace-1.16-lto.patch new file mode 100644 index 000000000000..a1704783f83e --- /dev/null +++ b/media-gfx/potrace/files/potrace-1.16-lto.patch @@ -0,0 +1,18 @@ +https://git.altlinux.org/srpms/p/potrace.git?p=potrace.git;a=commitdiff;h=385f40d2d9827049f5f43f73d05e9fc7472e0da4 +https://bugs.gentoo.org/868465 +--- a/configure.ac ++++ b/configure.ac +@@ -251,9 +251,10 @@ AC_CHECK_FUNC(strncasecmp, , + dnl ---------------------------------------------------------------------- + dnl Check whether we have i386 features + AC_MSG_CHECKING([for Intel 386]) +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int x; +- asm("bsf %1,%0\njnz 0f\nmovl $32,%0\n0:":"=r"(x):"r"(x)); +- return x; /* need this so that -O2 does not optimize the asm away */ ++AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int x = 1; ++ volatile asm("bsf %1,%0\njnz 0f\nmovl $32,%0\n0:":"=r"(x):"r"(x):"memory"); ++ /* volatile and "memory" clobber ensures '-O2 -flto' does not optimize the asm away */ ++ return x; + ]])],[AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_I386,, Can we use Intel 386 optimizations?) + ],[AC_MSG_RESULT(no)]) |