URL
https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk
Show entire file |
Details |
Blame |
View Log
Rev 58 |
Rev 166 |
Line 70... |
Line 70... |
set DOBJDUMP_FLAGS --dynamic-syms
|
set DOBJDUMP_FLAGS --dynamic-syms
|
set SOBJDUMP_FLAGS --syms
|
set SOBJDUMP_FLAGS --syms
|
set shared "--shared --no-undefined-version"
|
set shared "--shared --no-undefined-version"
|
set script --version-script
|
set script --version-script
|
|
|
if [istarget mips*-*-*] {
|
# Old version of GCC for MIPS default to enabling -fpic
|
|
# and get confused if it is used on the command line.
|
|
if { [istarget mips*-*-*] && ! [at_least_gcc_version 4 3] } then {
|
set picflag ""
|
set picflag ""
|
} else {
|
} else {
|
# Unfortunately, the gcc argument is -fpic and the cc argument is
|
# Unfortunately, the gcc argument is -fpic and the cc argument is
|
# -KPIC. We have to try both.
|
# -KPIC. We have to try both.
|
set picflag "-fpic"
|
set picflag "-fpic"
|
Line 766... |
Line 768... |
}
|
}
|
|
|
pass $test
|
pass $test
|
}
|
}
|
|
|
if [istarget x86_64-*-linux*] {
|
if { [istarget x86_64-*-linux*] \
|
# x86_64 doesn't like non-pic shared libraries
|
|| ( [istarget mips*-*-linux*] && [at_least_gcc_version 4 3] ) } {
|
|
# x86_64 and newer MIPS toolchains do not like non-pic shared libraries
|
set pic "yes"
|
set pic "yes"
|
} else {
|
} else {
|
set pic "no"
|
set pic "no"
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.