Hello,

regarding the problem:

> gcc  -g -O2 -c libnr/have_mmx.S
> [...]
> ar cru [...] libnr/have_mmx.o [...]
> ar: libnr/have_mmx.o: No such file or directory

The problem could be fixed by adding option
        -o libnr/have_mmx.o
to the gcc.

Attached please find a patch, which should do this
(there are two versions, for 1.9 and for CVS HEAD).
The patch is not tested.

(It should be possible to apply the 1.9 patch directly to the installed
/usr/bin/automake script.)

BTW: *.S will mean _preprocessed_ assembler in automake-1.10.  So if this
is not your case, you should rather use *.s for asm sources.

HTH,
        Stepan Kasal
2005-08-15  Stepan Kasal  <[EMAIL PROTECTED]>

        * automake.in (handle_languages): With subdir-objects set, add the
          -o option for Assembler sources, too.

Index: automake.in
===================================================================
RCS file: /cvsroot/automake/automake/automake.in,v
retrieving revision 1.1569.2.18
diff -u -r1.1569.2.18 automake.in
--- automake.in 30 Jun 2005 21:19:58 -0000      1.1569.2.18
+++ automake.in 15 Aug 2005 17:36:02 -0000
@@ -1138,7 +1138,7 @@
            my $output_flag = $lang->output_flag || '';
            $output_flag = '-o'
              if (! $output_flag
-                 && $lang->name eq 'c'
+                 && ($lang->name eq 'c' || $lang->name eq 'asm')
                  && option 'subdir-objects');
 
            # Compute a possible derived extension.
2005-08-15  Stepan Kasal  <[EMAIL PROTECTED]>

        * automake.in (handle_languages): With subdir-objects set, add the
          -o option for Assembler sources, too.

Index: automake.in
===================================================================
RCS file: /cvsroot/automake/automake/automake.in,v
retrieving revision 1.1611
diff -u -r1.1611 automake.in
--- automake.in 7 Aug 2005 09:48:30 -0000       1.1611
+++ automake.in 15 Aug 2005 17:35:44 -0000
@@ -1213,7 +1213,7 @@
            my $output_flag = $lang->output_flag || '';
            $output_flag = '-o'
              if (! $output_flag
-                 && $lang->name eq 'c'
+                 && ($lang->name eq 'c' || $lang->name eq 'asm' || $lang->name 
eq 'cppasm')
                  && option 'subdir-objects');
 
            # Compute a possible derived extension.

Reply via email to