Hi!

On sparc64 it matters a lot with which multilib options is gcc -shared
invoked (it generates completely different library with -m32 than with
-m64).
The following patch tries to solve it partly by using double quotes arround
$(*LD) argument to ltconfig, so that ltconfig takes the whole
gcc -m32
or whatever as one argument. It helps also in the situation where CC is
something like "/some/path/gcc/xgcc -B /some/path/gcc/xgcc" because
otherwise the -B is thrown away as well.

        * automake.in: Surround $(*LD) in ltlink invocations into double
        quotes.

--- automake/automake.in.jj     Wed Apr  5 22:55:48 2000
+++ automake/automake.in        Fri Apr 14 09:05:46 2000
@@ -1041,7 +1041,7 @@ sub finish_languages
                                       $language_map{'c-compile'});
        }
        &define_variable ('CCLD', '$(CC)');
-       &define_variable ('LINK', $ltlink . '$(CCLD) $(AM_CFLAGS) $(CFLAGS) 
$(AM_LDFLAGS) $(LDFLAGS) -o $@');
+       &define_variable ('LINK', $ltlink . '"$(CCLD)" $(AM_CFLAGS) $(CFLAGS) 
+$(AM_LDFLAGS) $(LDFLAGS) -o $@');
     }
 }
 
@@ -5008,7 +5008,7 @@ sub lang_cxx_finish
     local ($ltcompile, $ltlink) = &libtool_compiler;
 
     &define_variable ('CXXLD', '$(CXX)');
-    &define_variable ('CXXLINK', $ltlink . '$(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) 
$(AM_LDFLAGS) $(LDFLAGS) -o $@');
+    &define_variable ('CXXLINK', $ltlink . '"$(CXXLD)" $(AM_CXXFLAGS) $(CXXFLAGS) 
+$(AM_LDFLAGS) $(LDFLAGS) -o $@');
 
     if (! defined $configure_vars{'CXX'})
     {
@@ -5166,7 +5166,7 @@ sub lang_f77_finish
     local ($ltcompile, $ltlink) = &libtool_compiler;
 
     &define_variable ('F77LD', '$(F77)');
-    &define_variable ('F77LINK', $ltlink . '$(F77LD) $(AM_FFLAGS) $(FFLAGS) 
$(AM_LDFLAGS) $(LDFLAGS) -o $@');
+    &define_variable ('F77LINK', $ltlink . '"$(F77LD)" $(AM_FFLAGS) $(FFLAGS) 
+$(AM_LDFLAGS) $(LDFLAGS) -o $@');
 
     if (! defined $configure_vars{'F77'})
     {
@@ -5213,7 +5213,7 @@ sub lang_objc_finish
     local ($ltcompile, $ltlink) = &libtool_compiler;
 
     &define_variable ('OBJCLD', '$(OBJC)');
-    &define_variable ('OBJCLINK', $ltlink . '$(OBJCLD) $(AM_OBJCFLAGS) $(OBJCFLAGS) 
$(AM_LDFLAGS) $(LDFLAGS) -o $@');
+    &define_variable ('OBJCLINK', $ltlink . '"$(OBJCLD)" $(AM_OBJCFLAGS) $(OBJCFLAGS) 
+$(AM_LDFLAGS) $(LDFLAGS) -o $@');
 
     if (! defined $configure_vars{'OBJC'})
     {
@@ -5226,7 +5226,7 @@ sub lang_java_finish
     local ($ltcompile, $ltlink) = &libtool_compiler;
 
     &define_variable ('GCJLD', '$(GCJ)');
-    &define_variable ('GCJLINK', $ltlink . '$(GCJLD) $(AM_GCJFLAGS) $(GCJFLAGS) 
$(AM_LDFLAGS) $(LDFLAGS) -o $@');
+    &define_variable ('GCJLINK', $ltlink . '"$(GCJLD)" $(AM_GCJFLAGS) $(GCJFLAGS) 
+$(AM_LDFLAGS) $(LDFLAGS) -o $@');
 
     if (! defined $configure_vars{'GCJ'})
     {

        Jakub

Reply via email to