summaryrefslogtreecommitdiff
path: root/lang/guile/patches/patch-al
blob: 48a30d87d56c804b39fb096e2fd0098ac40a98bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-al,v 1.2 2007/07/20 00:09:23 gdt Exp $

Fix the test and fix the output for the braces test needed on
Solaris.

(Note that previous versions of this patch adjusted the AC_SUBST call,
and that change seems incorrect.)

--- configure.in.orig	2007-05-09 16:22:03.000000000 -0400
+++ configure.in
@@ -1120,6 +1120,15 @@ case "$with_threads" in
     # glibc (2.3.6 at least) works both with or without braces, so the
     # test checks whether it works without.
     #
+    # If we're using GCC, ask for aggressive warnings.  Otherwise the test
+    # below for braces may pass but then fail during compilation due to 
+    # stricter checks at compile time
+    case "$GCC" in
+        yes )
+            CFLAGS="${CFLAGS} -Wall -Werror"
+            ;;
+    esac
+
     AC_CACHE_CHECK([whether PTHREAD_ONCE_INIT needs braces],
       guile_cv_need_braces_on_pthread_once_init,
       [AC_TRY_COMPILE([#include <pthread.h>],