Subversion Repositories DevTools

Rev

Rev 227 | Rev 261 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 227 Rev 245
Line 26... Line 26...
26
#       misalign        - Path (relative to compiler) to the misalign obj file
26
#       misalign        - Path (relative to compiler) to the misalign obj file
27
#                         If not present then misalign not supported
27
#                         If not present then misalign not supported
28
#
28
#
29
my %SunProLocation = (
29
my %SunProLocation = (
30
    'solaris10_sparc32' => { 'compiler' => '/opt/SUNWspro/prod',
30
    'solaris10_sparc32' => { 'compiler' => '/opt/SUNWspro/prod',
31
                             'misalign' => 'lib/misalign.o' },
31
                             'misalign' => 'lib/misalign.o',
-
 
32
                             'archiver' => '/usr/ccs/bin',
-
 
33
                           },
32
 
34
 
33
    'solaris10_x86'     => { 'compiler' => '/opt/SUNWspro/prod' },
35
    'solaris10_x86'     => { 'compiler' => '/opt/SUNWspro/prod',
-
 
36
                             'archiver' => '/usr/ccs/bin',
-
 
37
                           },
34
 
38
 
35
    'sparc'             => { 'compiler' => '/opt/SUNWspro/WS6U1',
39
    'sparc'             => { 'compiler' => '/opt/SUNWspro/WS6U1',
36
                             'misalign' => 'lib/misalign.o' },
40
                             'misalign' => 'lib/misalign.o',
-
 
41
                             'archiver' => '/usr/ccs/bin',
-
 
42
                           },
37
    );
43
    );
38
 
44
 
39
#
45
#
40
#   Globals
46
#   Globals
41
#
47
#
Line 141... Line 147...
141
    #
147
    #
142
    $::ScmCompilerOpts{'THREADMODE'} = '1';
148
    $::ScmCompilerOpts{'THREADMODE'} = '1';
143
 
149
 
144
 
150
 
145
    #
151
    #
146
    #   Ensure that we know where the compiler is
152
    #   Ensure that we know where the compiler and archiver are
147
    #
153
    #
148
    if ( exists $SunProLocation{$GBE_MACHTYPE} )
154
    if ( exists $SunProLocation{$GBE_MACHTYPE} )
149
    {
155
    {
150
        my $sunpro = $SunProLocation{$GBE_MACHTYPE}{compiler};
156
        my $sunpro = $SunProLocation{$GBE_MACHTYPE}{compiler};
151
        ToolsetDefine ( "SUNWSPRO_SC  = $sunpro" );
157
        ToolsetDefine ( "SUNWSPRO_SC  = $sunpro" );
-
 
158
 
-
 
159
        my $ar_path = $SunProLocation{$GBE_MACHTYPE}{archiver};
-
 
160
        ToolsetDefine ( "AR_PATH  = $ar_path" );
152
    }
161
    }
153
    else
162
    else
154
    {
163
    {
155
        Error ("SunWorks compiler not configured for this type of machine",
164
        Error ("SunWorks compiler not configured for this type of machine",
156
               "GBE_MACHTYPE: $GBE_MACHTYPE" );
165
               "GBE_MACHTYPE: $GBE_MACHTYPE" );