bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: support for SunPRO C/C++ on Linux


From: Ralf Wildenhues
Subject: Re: support for SunPRO C/C++ on Linux
Date: Sun, 14 May 2006 18:15:00 +0200
User-agent: Mutt/1.5.11+cvs20060403

Hi Bruno, all,

>>>> +         _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'
>>>
>>> Are you sure the compiler driver won't reorder arguments here?

I tested this now, this issue seems ok for the time being.  Let's hope
they don't break it.

The CVS HEAD test suite exposed some further issues:
- whole_archive_flag_spec needs to be adjusted the way you suggested also
  for the C compiler.
- We can trick the C compiler driver into accepting only whole archives
  (and no other objects) by adding a dummy /dev/null argument: it will
  be ignored by GNU binutils ld.  :-)
- The Fortran compilers need an empty $wl: they'll forward everything
  they don't understand to the linker.  Let's not worry about their
  overly verbose warnings about them.
- This means we need white space separators in whole_archive for
  Fortran.
- For the compiler matching, we need more than the first line: the f77
  driver will prepend all output; 5 lines should be sufficient.
| NOTICE: Invoking /home/ralf/download/software/sunstudio/sunstudiomars/bin/f90 
-f77 -ftrap=%none --version
 

Furthermore, the GCJ convenience test fails, due to insufficient
variable resetting done in the Java section of libtool.m4 ($wl in this
case).  I reported this issue a while ago, but never got around to
fixing it yet.

So this is where I'm at now.  I think the postdeps for Fortran are still
wrong, but we can fix that later.

It should be noted that currently, newer versions of config.guess and
config.sub are needed than the checked-in copies of branch-1-5; in any
case they need to be newer than those shipped with Autoconf-2.59, so
they will be updated first.

On i686-pc-linux-gnu, HEAD passes all tests except the GCJ convenience
one, branch-1-5 passes all its tests plus the non-FC HEAD convenience
tests; you can test this with overriding $LIBTOOL for the HEAD testsuite
(plus my pending patch):
  make check-local \
    TESTSUITE_FLAGS='-v -d 11 LIBTOOL=/tmp/branch-1-5/build-suncc/libtool'


Unless anyone has complaints about these patches, I'll probably apply
within the couple of days.

Cheers,
Ralf

HEAD:
2006-05-14  Bruno Haible  <address@hidden>,
            Ralf Wildenhues  <address@hidden>

        * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
        (_LT_LANG_CXX_CONFIG, _LT_SYS_HIDDEN_LIBDEPS) [ linux ]:
        Add support for Sun C 5.9, Sun C++ 5.9, and Sun Fortran 8.3 on
        Linux.
        * NEWS: Update.

branch-1-5:
2006-05-14  Bruno Haible  <address@hidden>,
            Ralf Wildenhues  <address@hidden>

        * 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.
        * NEWS: Update.

Attachment: HEAD-suncc-linux.diff
Description: Text document

Attachment: 1-5-suncc-linux.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]