packages: poldek/ac-prog-libtool.patch (NEW), poldek/gcc-fvisibility.patch ...

glen glen at pld-linux.org
Sun Aug 22 21:10:17 CEST 2010


Author: glen                         Date: Sun Aug 22 19:10:17 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- patches to fix AC build

---- Files affected:
packages/poldek:
   ac-prog-libtool.patch (NONE -> 1.1)  (NEW), gcc-fvisibility.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/poldek/ac-prog-libtool.patch
diff -u /dev/null packages/poldek/ac-prog-libtool.patch:1.1
--- /dev/null	Sun Aug 22 21:10:17 2010
+++ packages/poldek/ac-prog-libtool.patch	Sun Aug 22 21:10:12 2010
@@ -0,0 +1,10 @@
+--- poldek-0.30/configure.ac~	2010-08-22 14:57:05.000000000 +0300
++++ poldek-0.30/configure.ac	2010-08-22 14:58:09.298819202 +0300
+@@ -48,6 +48,7 @@
+ 
+ dnl Checks for programs.
+ LT_INIT
++AC_PROG_LIBTOOL
+ AC_PROG_CC()
+ #AC_PROG_CXX()
+ AC_C_INLINE

================================================================
Index: packages/poldek/gcc-fvisibility.patch
diff -u /dev/null packages/poldek/gcc-fvisibility.patch:1.1
--- /dev/null	Sun Aug 22 21:10:18 2010
+++ packages/poldek/gcc-fvisibility.patch	Sun Aug 22 21:10:12 2010
@@ -0,0 +1,25 @@
+Signed-off-by: Elan Ruusamäe <glen at pld-linux.org>
+
+--- poldek-0.30/configure.ac~	2010-06-29 02:00:30.000000000 +0300
++++ poldek-0.30/configure.ac	2010-08-22 14:25:03.838184361 +0300
+@@ -61,6 +61,7 @@
+ AC_SUBST(AM_CFLAGS)
+ 
+ if test -n "$GCC"; then
++  cflags_save="$CFLAGS"
+   CFLAGS="$CFLAGS -fvisibility=hidden"
+   AC_MSG_CHECKING([whether gcc supports visibility])
+   AC_TRY_COMPILE(
+@@ -70,7 +71,11 @@
+ 	 extern __attribute__((__visibility__("default"))) int exportedfunc (void);],
+ 	[],
+ 	AC_MSG_RESULT(yes),
+-	AC_MSG_ERROR(["compiler does not support visibility"]))
++	[
++	  AC_MSG_WARN([compiler does not support visibility])
++	  CFLAGS="$cflags_save"
++	]
++  )
+ fi
+ 
+ 
================================================================


More information about the pld-cvs-commit mailing list