On Wed, Oct 02, 2002, Michael Schloh wrote:

>     Added support fix for IRIX.
> [...]
>    Source0:      ftp://ftp.cpan.org/pub/CPAN/src/%{name}-%{version}.tar.gz
>   @@ -90,6 +90,12 @@
>                    2.1[1-9].* ) ;;
>                    * ) cc=`%{l_shtool} path -p/bin:/usr/bin:$PATH cc`; cflags="-O" ;;
>                esac
>   +            ;;
>   +        *-irix* )
>   +            cc=gcc
>   +            #   fix problem in <netinet/tcp.h>
>   +            ccflags="-DBYTE_ORDER=4321
>   +            -DBIG_ENDIAN=4321"
>                ;;

cc=gcc is useless because gcc is the gcc in $PATH and $PATH has
%{l_prefix}/bin prefixed. So gcc actually is %{l_prefix}/bin/gcc which
is in turn %{l_cc} and this is already the default. So you can remove
this cc=gcc line at all. Second, why a line break in ccflags?

I suggest to clean it up:

Index: perl.spec
===================================================================
RCS file: /e/openpkg/cvs/openpkg-src/perl/perl.spec,v
retrieving revision 1.59
diff -u -d -u -d -r1.59 perl.spec
--- perl.spec   2 Oct 2002 08:19:49 -0000       1.59
+++ perl.spec   2 Oct 2002 09:11:24 -0000
@@ -92,10 +92,8 @@
             esac
             ;;
         *-irix* )
-            cc=gcc
             #   fix problem in <netinet/tcp.h>
-            ccflags="-DBYTE_ORDER=4321
-            -DBIG_ENDIAN=4321"
+            ccflags="-DBYTE_ORDER=4321 -DBIG_ENDIAN=4321"
             ;;
     esac

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to