Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 646070 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +6 lines)
Line  Link Here
0
-- a/tools/gcc.jam
0
++ b/tools/gcc.jam
Lines 223-229 Link Here
223
        # right onces. Note that we do not provide a clean way to build a 32-bit
223
        # right onces. Note that we do not provide a clean way to build a 32-bit
224
        # binary using a 64-bit compiler, but user can always pass -m32
224
        # binary using a 64-bit compiler, but user can always pass -m32
225
        # manually.
225
        # manually.
226
        local lib_path = $(root)/bin $(root)/lib $(root)/lib32 $(root)/lib64 ;
226
        local lib_path = $(root)/bin $(root)/lib $(root)/lib32 $(root)/libx32 $(root)/lib64 ;
227
        if $(.debug-configuration)
227
        if $(.debug-configuration)
228
        {
228
        {
229
            ECHO "notice:" using gcc libraries "::" $(condition) "::" $(lib_path) ;
229
            ECHO "notice:" using gcc libraries "::" $(condition) "::" $(lib_path) ;
Lines 360-365 Link Here
360
    local generic-os = [ set.difference $(all-os) : aix hpux ] ;
360
    local generic-os = [ set.difference $(all-os) : aix hpux ] ;
361
    local arch = power sparc x86 ;
361
    local arch = power sparc x86 ;
362
    compile-link-flags <target-os>$(generic-os)/<architecture>$(arch)/<address-model>32 : -m32 ;
362
    compile-link-flags <target-os>$(generic-os)/<architecture>$(arch)/<address-model>32 : -m32 ;
363
    compile-link-flags <target-os>linux/<architecture>x86/<address-model>32_64 : -mx32 ;
363
    compile-link-flags <target-os>$(generic-os)/<architecture>$(arch)/<address-model>64 : -m64 ;
364
    compile-link-flags <target-os>$(generic-os)/<architecture>$(arch)/<address-model>64 : -m64 ;
364
}
365
}
365
366
366
-- a/tools/gcc.py
367
++ b/tools/gcc.py
Lines 162-167 Link Here
162
        lib_path = [os.path.join(root, 'bin'),
162
        lib_path = [os.path.join(root, 'bin'),
163
                    os.path.join(root, 'lib'),
163
                    os.path.join(root, 'lib'),
164
                    os.path.join(root, 'lib32'),
164
                    os.path.join(root, 'lib32'),
165
                    os.path.join(root, 'libx32'),
165
                    os.path.join(root, 'lib64')]
166
                    os.path.join(root, 'lib64')]
166
        if debug():
167
        if debug():
167
            print 'notice: using gcc libraries ::', condition, '::', lib_path
168
            print 'notice: using gcc libraries ::', condition, '::', lib_path
Lines 744-749 Link Here
744
#
745
#
745
# x86 and compatible
746
# x86 and compatible
746
flags('gcc', 'OPTIONS', ['<architecture>x86/<address-model>32'], ['-m32'])
747
flags('gcc', 'OPTIONS', ['<architecture>x86/<address-model>32'], ['-m32'])
748
flags('gcc', 'OPTIONS', ['<architecture>x86/<address-model>32_64'], ['-mx32'])
747
flags('gcc', 'OPTIONS', ['<architecture>x86/<address-model>64'], ['-m64'])
749
flags('gcc', 'OPTIONS', ['<architecture>x86/<address-model>64'], ['-m64'])
748
cpu_flags('gcc', 'OPTIONS', 'x86', 'native', ['-march=native'])
750
cpu_flags('gcc', 'OPTIONS', 'x86', 'native', ['-march=native'])
749
cpu_flags('gcc', 'OPTIONS', 'x86', 'i486', ['-march=i486'])
751
cpu_flags('gcc', 'OPTIONS', 'x86', 'i486', ['-march=i486'])

Return to bug 646070