On Thu, Apr 22, 2004, Karl Vogel wrote:
> [...]
> > Well, the Configure options actually reads -Doptimize="%{l_cflags -O}"
> > which means that the l_cflags macro is called with option -O. This in
> > turn runs "rpmtool cflags -O %{l_cc}" and there the -O input option
> > becomes a real -O option in the output (because no "gcc" is found,
> > else it would output -O2 -pipe). So, the correct fix is not to patch
> > perl.spec from "perl" package, but to patch rpmtool from the "openpkg"
> > package to know about this additional Tru64 issue.
>
> I think this is incorrect. The build was using gcc and it does understand -O
> as a _compiler_ flag (ie. gcc -O filename.c works without problems).
>
> The problem is that the perl Configure script uses the 'optimize' setting as
> a parameter to the linker. So the 'ld' command is called directly with
> $optimize as one of the parameters and since the 'ld' command on Tru64 is
> not GNU ld, it doesn't work.
>
> The part that takes this $optimize and uses it as ld flag is in
> hints/dec_osf.sh :
> [...]
Ah, ok. Now I understand the problem. I've now patched out
this ld(1) optimizer flag passing from hints/dec_osf.sh. See
http://cvs.openpkg.org/chngview?cn=16086 for details. Thanks for
discovering the real problem, Karl.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
The OpenPKG Project www.openpkg.org
Developer Communication List [EMAIL PROTECTED]