- Add potrace_configure_chg_for_lto.patch to avoid PowerPC and ARM build failure when LTO enabled. OBS-URL: https://build.opensuse.org/request/show/724046 OBS-URL: https://build.opensuse.org/package/show/graphics/potrace?expand=0&rev=25
27 lines
945 B
Diff
27 lines
945 B
Diff
From: Michel Normand <normand@linux.vnet.ibm.com>
|
|
Subject: potrace configure chg for lto
|
|
Date: Fri, 16 Aug 2019 14:39:23 +0200
|
|
|
|
potrace configure chg for lto
|
|
|
|
For asm inline checking.
|
|
|
|
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
|
|
---
|
|
configure.ac | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
Index: potrace-1.15/configure.ac
|
|
===================================================================
|
|
--- potrace-1.15.orig/configure.ac
|
|
+++ potrace-1.15/configure.ac
|
|
@@ -250,7 +250,7 @@ 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;
|
|
+AC_LINK_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_MSG_RESULT(yes)
|