5256 |
fi |
fi |
5257 |
;; |
;; |
5258 |
|
|
5259 |
|
linux*) |
5260 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
5261 |
|
tmp_addflag= |
5262 |
|
case $cc_basename,$host_cpu in |
5263 |
|
pgcc*) # Portland Group C compiler |
5264 |
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
5265 |
|
;; |
5266 |
|
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers |
5267 |
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
5268 |
|
tmp_addflag=' -fpic -Mnomain' ;; |
5269 |
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
5270 |
|
tmp_addflag=' -i_dynamic' ;; |
5271 |
|
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
5272 |
|
tmp_addflag=' -i_dynamic -nofor_main' ;; |
5273 |
|
ifc* | ifort*) # Intel Fortran compiler |
5274 |
|
tmp_addflag=' -nofor_main' ;; |
5275 |
|
esac |
5276 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5277 |
|
|
5278 |
|
if test $supports_anon_versioning = yes; then |
5279 |
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ |
5280 |
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
5281 |
|
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
5282 |
|
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
5283 |
|
fi |
5284 |
|
else |
5285 |
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
5286 |
|
fi |
5287 |
|
;; |
5288 |
|
|
5289 |
netbsd*) |
netbsd*) |
5290 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
5291 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
5324 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5325 |
;; |
;; |
5326 |
|
|
|
linux*) |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
tmp_addflag= |
|
|
case $cc_basename,$host_cpu in |
|
|
pgcc*) # Portland Group C compiler |
|
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
|
|
;; |
|
|
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers |
|
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
|
|
tmp_addflag=' -fpic -Mnomain' ;; |
|
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
|
tmp_addflag=' -i_dynamic' ;; |
|
|
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
|
tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
|
ifc* | ifort*) # Intel Fortran compiler |
|
|
tmp_addflag=' -nofor_main' ;; |
|
|
esac |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
|
|
|
if test $supports_anon_versioning = yes; then |
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
|
fi |
|
|
else |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
fi |
|
|
;; |
|
|
|
|
5327 |
*) |
*) |
5328 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
5329 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |