diff options
author | Steven Knight <knight@baldmt.com> | 2003-04-24 03:45:32 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-04-24 03:45:32 (GMT) |
commit | db7e2b9bef087394fd3ce603e75231dec7f2eca4 (patch) | |
tree | 59fe8e23d14566ca5776d7ad108e95208ed17344 /src/engine/SCons/Tool/gnulink.py | |
parent | 9587e1d2dad1c532d86f664f5cbd6266ebd77808 (diff) | |
download | SCons-db7e2b9bef087394fd3ce603e75231dec7f2eca4.zip SCons-db7e2b9bef087394fd3ce603e75231dec7f2eca4.tar.gz SCons-db7e2b9bef087394fd3ce603e75231dec7f2eca4.tar.bz2 |
Implement tool chains for AIX, SunOS, and HP-UX. (Steve Leblanc)
Diffstat (limited to 'src/engine/SCons/Tool/gnulink.py')
-rw-r--r-- | src/engine/SCons/Tool/gnulink.py | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/engine/SCons/Tool/gnulink.py b/src/engine/SCons/Tool/gnulink.py index 7e17370..1928b58 100644 --- a/src/engine/SCons/Tool/gnulink.py +++ b/src/engine/SCons/Tool/gnulink.py @@ -33,28 +33,13 @@ selection method. __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" -import SCons.Defaults -import SCons.Util +import link linkers = ['c++', 'cc', 'g++', 'gcc'] def generate(env): """Add Builders and construction variables for gnulink to an Environment.""" - env['BUILDERS']['SharedLibrary'] = SCons.Defaults.SharedLibrary - env['BUILDERS']['Program'] = SCons.Defaults.Program - - env['SHLINK'] = '$LINK' - env['SHLINKFLAGS'] = '$LINKFLAGS -shared' - env['SHLINKCOM'] = '$SHLINK $SHLINKFLAGS -o $TARGET $SOURCES $_LIBDIRFLAGS $_LIBFLAGS' - env['SHLIBEMITTER']= None - env['LINK'] = env.Detect(linkers) or 'c++' - env['LINKFLAGS'] = '' - env['LINKCOM'] = '$LINK $LINKFLAGS -o $TARGET $SOURCES $_LIBDIRFLAGS $_LIBFLAGS' - env['LIBDIRPREFIX']='-L' - env['LIBDIRSUFFIX']='' - env['_LIBFLAGS']='${_stripixes(LIBLINKPREFIX, LIBS, LIBLINKSUFFIX, LIBPREFIX, LIBSUFFIX, __env__)}' - env['LIBLINKPREFIX']='-l' - env['LIBLINKSUFFIX']='' + link.generate(env) def exists(env): return env.Detect(linkers) |