Change the default lex command to use the POSIX-compliant -t option, not the GNU...
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 7 Mar 2002 21:59:50 +0000 (21:59 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 7 Mar 2002 21:59:50 +0000 (21:59 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@285 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/CHANGES.txt
src/engine/SCons/Defaults.py

index 2acc69cf2671869146b90d1f2e6c2c3912174138..cc047da03757c248ab265fe8cb8e299813496f7e 100644 (file)
@@ -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
index b0fa846fc3d9038c9597dda17a0f5069120c3484..d58126ef63d50654c273d43704c9e9ac788791c0 100644 (file)
@@ -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',