This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Current problems


Akim Demaille <akim@epita.fr> writes:

> 4. handle_factored_dependencies
>    is outputting in an order which is not the one I want.
>    I have not understood why, nor why it suddenly changed.  In
>    particular .PHONY is no longer last as it should.

Solved.  From perldelta (I'm running 5.6):

       Enhanced support for sort() subroutines

       Perl subroutines with a prototype of `($$)', and XSUBs in
       general, can now be used as sort subroutines.  In either
       case, the two elements to be compared are passed as normal
       parameters in @_.  See the sort entry in the perlfunc man­
       page.

target_cmp was prototyped, so it was comparing $a and $b which are not
passed to it!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]