From b126aeff76fd52f4a89404ff4ee40aa304e26196 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Thu, 7 Mar 2002 21:59:50 +0000 Subject: [PATCH] Change the default lex command to use the POSIX-compliant -t option, not the GNU-specific -o option. git-svn-id: http://scons.tigris.org/svn/scons/trunk@285 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/CHANGES.txt | 3 +++ src/engine/SCons/Defaults.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 2acc69cf..cc047da0 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -29,6 +29,9 @@ RELEASE 0.06 - - Add a CXXFile Builder that turns .ll and .yy files into .cc files (configurable via a CXXFILESUFFIX construction variable). + - Use the POSIX-standard lex -t flag, not the GNU-specific -o flag. + (Bug reported by Russell Christensen.) + RELEASE 0.05 - Thu, 21 Feb 2002 16:50:03 -0600 diff --git a/src/engine/SCons/Defaults.py b/src/engine/SCons/Defaults.py index b0fa846f..d58126ef 100644 --- a/src/engine/SCons/Defaults.py +++ b/src/engine/SCons/Defaults.py @@ -224,7 +224,7 @@ def make_win32_env_from_paths(include, lib, path): 'ARCOM' : '$AR $ARFLAGS /OUT:$TARGET $SOURCES', 'LEX' : 'lex', 'LEXFLAGS' : '', - 'LEXCOM' : '$LEX $LEXFLAGS -o$TARGET $SOURCES', + 'LEXCOM' : '$LEX $LEXFLAGS -t $SOURCES > $TARGET', 'YACC' : 'yacc', 'YACCFLAGS' : '', 'YACCCOM' : '$YACC $YACCFLAGS -o $TARGET $SOURCES', @@ -287,7 +287,7 @@ if os.name == 'posix': 'ARCOM' : arcom, 'LEX' : 'lex', 'LEXFLAGS' : '', - 'LEXCOM' : '$LEX $LEXFLAGS -o$TARGET $SOURCES', + 'LEXCOM' : '$LEX $LEXFLAGS -t $SOURCES > $TARGET', 'YACC' : 'yacc', 'YACCFLAGS' : '', 'YACCCOM' : '$YACC $YACCFLAGS -o $TARGET $SOURCES', -- 2.26.2