summaryrefslogtreecommitdiff
path: root/textproc/mecab-base/patches/patch-aa
blob: 56a293a560a6735648efb98d4fc00e84c0d75446 (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
27
28
29
30
31
32
33
$NetBSD: patch-aa,v 1.7 2013/05/09 15:07:59 joerg Exp $

* Use own optimization flags.

--- configure.orig	2013-02-15 08:08:00.000000000 +0000
+++ configure
@@ -17804,6 +17804,7 @@ $as_echo "#define HAVE_MMAP 1" >>confdef
 fi
 rm -f conftest.mmap conftest.txt
 
+if false; then
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
 $as_echo_n "checking for main in -lstdc++... " >&6; }
 if ${ac_cv_lib_stdcpp_main+:} false; then :
@@ -17837,6 +17838,7 @@ $as_echo "$ac_cv_lib_stdcpp_main" >&6; }
 if test "x$ac_cv_lib_stdcpp_main" = xyes; then :
   MECAB_LIBS="-lstdc++"
 fi
+fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
@@ -17989,8 +17991,8 @@ $as_echo "no" >&6; }
 fi
 
 if test -n "$GCC"; then
-   CFLAGS="-O3 -Wall "
-   CXXFLAGS="-O3 -Wall "
+   CFLAGS="${CFLAGS} -Wall "
+   CXXFLAGS="${CXXFLAGS} -Wall "
 fi