pkgsrc-Bugs archive

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

Re: pkg/44735 (pkgsrc 2010Q4 Solaris 2.{8,10} lang/gcc3 build failed (libtool problem ?))

On Thu, Mar 24, 2011 at 6:00 AM, Wolfgang Stukenbrock
<> wrote:
> The following reply was made to PR pkg/44735; it has been noted by GNATS.
>  I've " /usr/pkg/bin/pdksh" in the
>  /usr/pkg/etc/mk.conf too. It is placed there by the bootstrap process.

I guess I do not understand then how your libtool comes to contain
SHELL=/bin/sh and mine has the correct SHELL=/usr/pkg/bin/pdksh

>  When I switch to gcc3 for compilation, I run into problems with libtool
>  again, because libtool was build with sunstudio and there are some
>  imcompartible options that are hardcoded into /usr/pkg/bin/libtool ...
>  The main problem here is, that libtool has no support (till now) for
>  more than one compiler setup. It would be realy great improvement if
>  libtool would support different compilers in one installation depending
>  on "whatever" option, compiler name analyses or environment setting.

I think this should be fixed in the compiler specific transforms found
in pkgsrc/mk/wrapper/* the idea being that based on the compiler (or
other tool) in use, all args are converted to match what is needed.  I
am aware that these are currently incomplete, but have not understood
the entire infrastructure sufficiently yet to propose required fixes.

>  First -G does not work with gcc, so the following line is required to
>  fix the option:
>  WRAPPER_TRANSFORM_CMDS+= opt:-G:-shared
>  There are some -G<num> options for some architectures in gcc, but I hope
>  this does not hurt - at least for me it works for now.
>  The next problem is that sunstudio requires CC to be called with -xar to
>  build .a files from c++ sources. G++ never heard of this ...
>  This is more problematic, but can be worked around be the following:

I'm not sure I follow the complex solution you suggest, but if the
only requirement is to remove the -xar argument, then
WRAPPER_TRANSFORM_CMDS+= rm:-xar would do that for you.

I'm not a make expert, so perhaps someone else could better answer the
other questions.

Home | Main Index | Thread Index | Old Index