Subversion Repositories DevTools

Rev

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

Rev 5744 Rev 5796
Line 38... Line 38...
38
#          CXX_OPTS         => Additional C++ Options
38
#          CXX_OPTS         => Additional C++ Options
39
#          UNCONTROLLED     => Boolean to create warning
39
#          UNCONTROLLED     => Boolean to create warning
40
#          PACKAGE_ARCH     => Packageing architecture
40
#          PACKAGE_ARCH     => Packageing architecture
41
#          VERSION          => Version reported by GCC
41
#          VERSION          => Version reported by GCC
42
#          MACHINE          => Machine reported by GCC
42
#          MACHINE          => Machine reported by GCC
43
#          RPATH            => Relative Path to compiler runtime
43
#          RPATH            => Relative Path to compiler installed runtime
-
 
44
#                              Absolute or Relative
44
#          COMPILER_OPTIONS => Toolset specific compiler initial options
45
#          COMPILER_OPTIONS => Toolset specific compiler initial options
45
#                              This is a comma seperated list
46
#                              This is a comma seperated list
46
my %ToolsetConfig = (
47
my %ToolsetConfig = (
47
 
48
 
48
    'i386-unknown-linux-gnu'    => {
49
    'i386-unknown-linux-gnu'    => {
Line 104... Line 105...
104
       BASE         => 'bin/i686-vix_ubuntu12_c11-linux-gnu-',
105
       BASE         => 'bin/i686-vix_ubuntu12_c11-linux-gnu-',
105
       PACKAGE_ARCH => 'i386',
106
       PACKAGE_ARCH => 'i386',
106
       CXX_OPTS     => '-std=gnu++11',
107
       CXX_OPTS     => '-std=gnu++11',
107
       VERSION      => '5.2.0',
108
       VERSION      => '5.2.0',
108
       MACHINE      => 'i686-vix_ubuntu12_c11-linux-gnu',
109
       MACHINE      => 'i686-vix_ubuntu12_c11-linux-gnu',
109
       RPATH        => 'i686-vix_ubuntu12_c11-linux-gnu/sysroot/lib',
110
       RPATH        => '/lib/i686-vix_ubuntu12_c11-linux-gnu',
110
    },
111
    },
111
 
112
 
112
    'arm-iwmmxt-linux-gnueabi'  => {
113
    'arm-iwmmxt-linux-gnueabi'  => {
113
       ROOT         => '/opt/marvel',
114
       ROOT         => '/opt/marvel',
114
       BASE         => 'bin/arm-iwmmxt-linux-gnueabi-',
115
       BASE         => 'bin/arm-iwmmxt-linux-gnueabi-',
Line 380... Line 381...
380
        $GCCRoot = $GCCToolchain->{ROOT};
381
        $GCCRoot = $GCCToolchain->{ROOT};
381
        $GCCBin = '${GCC_ROOT}/' . $GCCToolchain->{BASE} . 'gcc';
382
        $GCCBin = '${GCC_ROOT}/' . $GCCToolchain->{BASE} . 'gcc';
382
        $GCCAr =  '${GCC_ROOT}/' . $GCCToolchain->{BASE} . 'ar';
383
        $GCCAr =  '${GCC_ROOT}/' . $GCCToolchain->{BASE} . 'ar';
383
        $GCCGcovTool = '${GCC_ROOT}/' . $GCCToolchain->{BASE} . 'gcov';
384
        $GCCGcovTool = '${GCC_ROOT}/' . $GCCToolchain->{BASE} . 'gcov';
384
        $GCCObjCopy =  '${GCC_ROOT}/' . $GCCToolchain->{BASE} . 'objcopy';
385
        $GCCObjCopy =  '${GCC_ROOT}/' . $GCCToolchain->{BASE} . 'objcopy';
-
 
386
        if (exists $GCCToolchain->{RPATH}) {
-
 
387
            if( $GCCToolchain->{RPATH} =~ m~^/~ ) {
-
 
388
                $GCCRPath = $GCCToolchain->{RPATH}; 
-
 
389
            } else {
385
        $GCCRPath = '${GCC_ROOT}/' . $GCCToolchain->{RPATH} if exists $GCCToolchain->{RPATH} ;
390
                $GCCRPath = '${GCC_ROOT}/' . $GCCToolchain->{RPATH};
-
 
391
            }
-
 
392
        }
386
        $GCCFlags = $GCCToolchain->{CC_OPTS};
393
        $GCCFlags = $GCCToolchain->{CC_OPTS};
387
        $GCCFlagsP = $GCCToolchain->{CC_OPTSP};
394
        $GCCFlagsP = $GCCToolchain->{CC_OPTSP};
388
        $GCCFlagsD = $GCCToolchain->{CC_OPTSD};
395
        $GCCFlagsD = $GCCToolchain->{CC_OPTSD};
389
        $GCCXXFlags = $GCCToolchain->{CXX_OPTS};
396
        $GCCXXFlags = $GCCToolchain->{CXX_OPTS};
390
        $PkgArch = $GCCToolchain->{PACKAGE_ARCH};
397
        $PkgArch = $GCCToolchain->{PACKAGE_ARCH};
Line 987... Line 994...
987
    $io->Cmd( "-Wl,--end-group" ) if ($multi_scan);
994
    $io->Cmd( "-Wl,--end-group" ) if ($multi_scan);
988
 
995
 
989
    #   Add Compilers sysroot library path
996
    #   Add Compilers sysroot library path
990
    #   Only required for a 'native' compiler that is not fully installed on the host
997
    #   Only required for a 'native' compiler that is not fully installed on the host
991
    #   ie: The run-time can't locate the required glic components
998
    #   ie: The run-time can't locate the required glic components
-
 
999
    if ($GCCRPath)
-
 
1000
    {
992
    $io->Cmd( "-Wl,-rpath=$GCCRPath" ) if ($GCCRPath);
1001
        $io->Cmd( "-Wl,-rpath=$GCCRPath" );
-
 
1002
        $io->Cmd( "-Wl,--dynamic-linker=$GCCRPath/ld-linux.so.2" ) if ($GCCRPath);
-
 
1003
    }
993
 
1004
 
994
    $io->Newline();
1005
    $io->Newline();
995
 
1006
 
996
    #.. Dependency link,
1007
    #.. Dependency link,
997
    #   Create a library dependency file
1008
    #   Create a library dependency file