瀏覽代碼

trick Binutils on no longer insisting on having Lex/Flex at hand

Ralf S. Engelschall 21 年之前
父節點
當前提交
9300004cec
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      binutils/binutils.spec

+ 6 - 1
binutils/binutils.spec

@@ -34,7 +34,7 @@ Class:        CORE
 Group:        Utility
 License:      GPL
 Version:      2.15
-Release:      20050107
+Release:      20050111
 
 #   list of sources
 Source0:      ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2
@@ -81,6 +81,11 @@ AutoReqProv:  no
         *-linux*   ) CFLAGS="$CFLAGS -DOPENPKG_OS_LINUX"   ;;
         *-sunos*   ) CFLAGS="$CFLAGS -DOPENPKG_OS_SOLARIS" ;;
     esac
+    ( echo "#!/bin/sh"
+      echo "touch lex.yy.c"
+      echo "echo 'lex.sh:WARNING: local Lex wrapper unexpectedly called.' 1>&2"
+    ) >lex.sh && chmod a+x lex.sh
+    echo "ac_cv_prog_LEX=`pwd`/lex.sh" >ld/config.cache
     INSTALL="%{l_shtool} install -c" \
     ./configure \
         --prefix=%{l_prefix}