]> git.pld-linux.org Git - packages/poldek.git/commitdiff
- patches to fix AC build
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 22 Aug 2010 19:10:12 +0000 (19:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ac-prog-libtool.patch -> 1.1
    gcc-fvisibility.patch -> 1.1

ac-prog-libtool.patch [new file with mode: 0644]
gcc-fvisibility.patch [new file with mode: 0644]

diff --git a/ac-prog-libtool.patch b/ac-prog-libtool.patch
new file mode 100644 (file)
index 0000000..c17bf8c
--- /dev/null
@@ -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
diff --git a/gcc-fvisibility.patch b/gcc-fvisibility.patch
new file mode 100644 (file)
index 0000000..5d4a80f
--- /dev/null
@@ -0,0 +1,25 @@
+Signed-off-by: Elan Ruusamäe <glen@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
This page took 0.089073 seconds and 4 git commands to generate.