Re: fio-f1480f9: AIX 6.1 build KO against gcc function overlap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/30/2015 09:50 AM, Jens Axboe wrote:
On 12/30/2015 09:38 AM, Jens Axboe wrote:
so that logic does look correct. Maybe the configure check for the error
return of lex -o isn't working. Do you have CONFIG_LEX_USE_O in your
config-host.mak, if you run configure --enable-lex?

If the latter is the case, then the attached patch should hopefully
work. That'll force NOT using -o for AIX always, if lex is enabled.

Gah, missed a 'fi'. New one attached.


--
Jens Axboe

diff --git a/configure b/configure
index e92e96b879b5..517668233fc7 100755
--- a/configure
+++ b/configure
@@ -247,6 +247,8 @@ AIX)
   # Unless explicitly enabled, turn off lex.
   if test -z "$disable_lex" ; then
     disable_lex="yes"
+  else
+    force_no_lex_o="yes"
   fi
   ;;
 Darwin)
@@ -1505,6 +1507,9 @@ fi
 
 # Check if lex fails using -o
 if test "$arith" = "yes" ; then
+if test "$force_no_lex_o" = "yes" ; then
+  lex_use_o="no"
+else
 $LEX -o lex.yy.c exp/expression-parser.l 2> /dev/null
 if test "$?" = "0" ; then
   lex_use_o="yes"
@@ -1512,6 +1517,7 @@ else
   lex_use_o="no"
 fi
 fi
+fi
 
 echo "lex/yacc for arithmetic       $arith"
 

[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux