mirror of
https://https.git.savannah.gnu.org/git/gettext.git
synced 2026-01-26 15:39:11 +00:00
Update Sun C support, from Ralf Wildenhues.
This commit is contained in:
parent
4ba1844ae3
commit
08d68b7743
16
ChangeLog
16
ChangeLog
@ -1,16 +1,16 @@
|
||||
2006-05-14 Bruno Haible <bruno@clisp.org>,
|
||||
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* libtool.m4 [ linux ] (AC_LIBTOOL_LANG_CXX_CONFIG)
|
||||
(AC_LIBTOOL_POSTDEP_PREDEP, AC_LIBTOOL_PROG_COMPILER_PIC)
|
||||
(AC_LIBTOOL_PROG_LD_SHLIBS): Add support for Sun C 5.9,
|
||||
Sun C++ 5.9, and Sun Fortran 8.3 on Linux.
|
||||
|
||||
2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
|
||||
|
||||
* m4/libtool.m4: On Cygwin, like on mingw, define DLL_EXPORT when
|
||||
compiling a shared library object.
|
||||
|
||||
2006-05-05 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
* m4/libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG): Add support for Sun C++
|
||||
5.9 on Linux.
|
||||
(AC_LIBTOOL_PROG_COMPILER_PIC): Add support for Sun C 5.9 and
|
||||
Sun C++ 5.9.
|
||||
(AC_LIBTOOL_PROG_LD_SHLIBS): Add support for Sun C 5.9.
|
||||
|
||||
2006-04-26 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
* build-aux/config.guess, build-aux/config.sub: Update to GNU version
|
||||
|
||||
92
m4/libtool.m4
vendored
92
m4/libtool.m4
vendored
@ -3353,24 +3353,28 @@ case $host_os in
|
||||
# dependencies.
|
||||
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
||||
;;
|
||||
CC*)
|
||||
# Sun C++ 5,9
|
||||
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
||||
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
||||
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
|
||||
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
||||
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
||||
*)
|
||||
case `$CC -V 2>&1 | sed 5q` in
|
||||
*Sun\ C*)
|
||||
# Sun C++ 5.9
|
||||
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
||||
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
||||
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
|
||||
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
||||
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
||||
|
||||
# Not sure whether something based on
|
||||
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
|
||||
# would be better.
|
||||
output_verbose_link_cmd='echo'
|
||||
# Not sure whether something based on
|
||||
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
|
||||
# would be better.
|
||||
output_verbose_link_cmd='echo'
|
||||
|
||||
# Archives containing C++ object files must be created using
|
||||
# "CC -xar", where "CC" is the Sun C++ compiler. This is
|
||||
# necessary to make sure instantiated templates are included
|
||||
# in the archive.
|
||||
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
|
||||
# Archives containing C++ object files must be created using
|
||||
# "CC -xar", where "CC" is the Sun C++ compiler. This is
|
||||
# necessary to make sure instantiated templates are included
|
||||
# in the archive.
|
||||
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
@ -3891,6 +3895,15 @@ interix3*)
|
||||
_LT_AC_TAGVAR(postdeps,$1)=
|
||||
;;
|
||||
|
||||
linux*)
|
||||
case `$CC -V 2>&1 | sed 5q` in
|
||||
*Sun\ C*)
|
||||
# Sun C++ 5.9
|
||||
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
solaris*)
|
||||
case $cc_basename in
|
||||
CC*)
|
||||
@ -5011,13 +5024,15 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
||||
;;
|
||||
CC*)
|
||||
# Sun C++ 5.9
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
||||
;;
|
||||
*)
|
||||
case `$CC -V 2>&1 | sed 5q` in
|
||||
*Sun\ C*)
|
||||
# Sun C++ 5.9
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
@ -5271,11 +5286,21 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
|
||||
como)
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt='
|
||||
;;
|
||||
c89* | c99*)
|
||||
# Sun C 5.9
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
||||
*)
|
||||
case `$CC -V 2>&1 | sed 5q` in
|
||||
*Sun\ C*)
|
||||
# Sun C 5.9
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
||||
;;
|
||||
*Sun\ F*)
|
||||
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
@ -5587,11 +5612,14 @@ EOF
|
||||
ifc* | ifort*) # Intel Fortran compiler
|
||||
tmp_addflag=' -nofor_main' ;;
|
||||
esac
|
||||
case $cc_basename in
|
||||
c89* | c99*) # Sun C 5.9
|
||||
tmp_sharedflag='-G' ;;
|
||||
*)
|
||||
tmp_sharedflag='-shared' ;;
|
||||
case `$CC -V 2>&1 | sed 5q` in
|
||||
*Sun\ C*) # Sun C 5.9
|
||||
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null'
|
||||
tmp_sharedflag='-G' ;;
|
||||
*Sun\ F*) # Sun Fortran 8.3
|
||||
tmp_sharedflag='-G' ;;
|
||||
*)
|
||||
tmp_sharedflag='-shared' ;;
|
||||
esac
|
||||
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user