URL
https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 157 |
Rev 166 |
Line 247... |
Line 247... |
set VSBCFLAG "-DPROTECTED_WEAK_TEST"
|
set VSBCFLAG "-DPROTECTED_WEAK_TEST"
|
} else {
|
} else {
|
set VSBCFLAG ""
|
set VSBCFLAG ""
|
}}}}}}}}}
|
}}}}}}}}}
|
|
|
if { [istarget powerpc*-*-linux*] } {
|
if { [istarget powerpc*-*-linux*] \
|
|
|| ( [istarget mips*-*-linux*] && [at_least_gcc_version 4 3] )} {
|
# Testing non-PIC libraries is a waste of effort on any target.
|
# Testing non-PIC libraries is a waste of effort on any target.
|
# If you don't pass -fpic or -fPIC to gcc, gcc will assume quite
|
# If you don't pass -fpic or -fPIC to gcc, gcc will assume quite
|
# reasonably that you are not compiling for a shared library.
|
# reasonably that you are not compiling for a shared library.
|
# It can then make optimisations that result in shared library
|
# It can then make optimisations that result in shared library
|
# functions and variables not being overridable. Newer versions
|
# functions and variables not being overridable. Newer versions
|
Line 451... |
Line 452... |
unresolved "visibility ($visibility) (PIC main)"
|
unresolved "visibility ($visibility) (PIC main)"
|
}
|
}
|
}}
|
}}
|
}
|
}
|
|
|
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"
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.