Add -e$TARGET to Borland linker command line, to fix issue #1166.
authorgaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Tue, 6 Jan 2009 12:32:14 +0000 (12:32 +0000)
committergaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Tue, 6 Jan 2009 12:32:14 +0000 (12:32 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3874 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Tool/ilink32.py

index 758310eaf191b4afbe078b7240c7a59cdd9dc77a..d6ddc9d5418e569faeed040d30003e3a61379448 100644 (file)
@@ -34,14 +34,14 @@ import SCons.Tool.bcc32
 import SCons.Util
 
 def generate(env):
-    """Add Builders and construction variables for ilink to an
+    """Add Builders and construction variables for Borland ilink to an
     Environment."""
     SCons.Tool.createSharedLibBuilder(env)
     SCons.Tool.createProgBuilder(env)
 
     env['LINK']        = '$CC'
     env['LINKFLAGS']   = SCons.Util.CLVar('')
-    env['LINKCOM']     = '$LINK -q $LINKFLAGS $SOURCES $LIBS'
+    env['LINKCOM']     = '$LINK -q $LINKFLAGS -e$TARGET $SOURCES $LIBS'
     env['LIBDIRPREFIX']=''
     env['LIBDIRSUFFIX']=''
     env['LIBLINKPREFIX']=''