]> git.pld-linux.org Git - packages/poldek.git/blame - gcc-fvisibility.patch
This commit was manufactured by cvs2git to create branch 'AC-DEVEL'.
[packages/poldek.git] / gcc-fvisibility.patch
CommitLineData
517e249f 1Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
2
3--- poldek-0.30/configure.ac~ 2010-06-29 02:00:30.000000000 +0300
4+++ poldek-0.30/configure.ac 2010-08-22 14:25:03.838184361 +0300
5@@ -61,6 +61,7 @@
6 AC_SUBST(AM_CFLAGS)
7
8 if test -n "$GCC"; then
9+ cflags_save="$CFLAGS"
10 CFLAGS="$CFLAGS -fvisibility=hidden"
11 AC_MSG_CHECKING([whether gcc supports visibility])
12 AC_TRY_COMPILE(
13@@ -70,7 +71,11 @@
14 extern __attribute__((__visibility__("default"))) int exportedfunc (void);],
15 [],
16 AC_MSG_RESULT(yes),
17- AC_MSG_ERROR(["compiler does not support visibility"]))
18+ [
19+ AC_MSG_WARN([compiler does not support visibility])
20+ CFLAGS="$cflags_save"
21+ ]
22+ )
23 fi
24
25
This page took 0.025839 seconds and 4 git commands to generate.