From: Ben Gras Date: Tue, 25 Jul 2006 09:39:13 +0000 (+0000) Subject: flex build fix - can't build and install separately with two different X-Git-Tag: v3.1.3~231 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/soc.html?a=commitdiff_plain;h=7573c41657acbe9f8da2bd40b229c6e9ce2118a8;p=minix.git flex build fix - can't build and install separately with two different compilers. --- diff --git a/commands/flex-2.5.4/build b/commands/flex-2.5.4/build index cec4ae822..255e647ca 100755 --- a/commands/flex-2.5.4/build +++ b/commands/flex-2.5.4/build @@ -3,12 +3,14 @@ CCACHE=config.cache rm -f $CCACHE make distclean -RANLIB=true AR=ar CONFIG_SHELL=/bin/bigsh CC=cc /bin/bigsh ./configure --prefix=/usr +L=libfl.a +YACC=/usr/bin/yacc RANLIB=true AR=ar CONFIG_SHELL=/bin/bigsh CC=cc /bin/bigsh ./configure --prefix=/usr make clean all install +mv /usr/lib/$L /usr/lib/i386 if [ -f /usr/gnu/bin/gcc ] then PATH=/usr/gnu/bin:$PATH rm -f $CCACHE - CC=gcc CONFIG_SHELL=/bin/bigsh AR=gar /bin/bigsh ./configure --prefix=/usr/local/gnu + YACC=/usr/bin/yacc CC=gcc CONFIG_SHELL=/bin/bigsh AR=gar /bin/bigsh ./configure --prefix=/usr/local/gnu make clean libfl.a install fi