libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wrt to Tru64


From: Aneesh Kumar K.V
Subject: Re: Wrt to Tru64
Date: Mon, 23 Apr 2001 12:17:23 +0530

>

Hi ,

>
> >
> >
> > ./ltconfig[633]: syntax error at line 1 : `COPYING' unexpected
>
> Wierd.  We will be interested to hear what you discover.
>

I  found that the error message is because of a script error in ltcf-cxx.sh.
I have  a fix for that.  But not sure whether it is correct or not .   But  then
once I explain what is happening  some one else should be  able to check whether
the patch I am sending is correct or not .  The '* 'in the
'output_verbose_link_cmds' is getting expand as the file list in the current
directory . I have right now put a backslash "\" to indicase escape . But not
sure it is the right way of fixing . Any how here goes the PATCH .

Index: libtool/ltcf-cxx.sh
===================================================================
RCS file: /var/cvs/libtool/Attic/ltcf-cxx.sh,v
retrieving revision 1.1.2.41
diff -u -r1.1.2.41 ltcf-cxx.sh
--- libtool/ltcf-cxx.sh 2001/04/20 08:53:18     1.1.2.41
+++ libtool/ltcf-cxx.sh 2001/04/23 06:21:18
@@ -270,7 +270,7 @@
         # explicitly linking system object files so we need to strip them
         # from the output so that they don't get included in the library
         # dependencies.
-        output_verbose_link_cmds='templist=`($CC -b $CFLAGS -v conftest.$objext
2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in
conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done;
echo $list'
+        output_verbose_link_cmds='templist=`($CC -b $CFLAGS -v conftest.$objext
2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in
conftest.$objext) list="$list $z";; *.$objext);; \*) list="$list $z";;esac;
done; echo $list'
         ;;
       *)
         if test $with_gcc = yes; then
@@ -332,7 +332,7 @@
         # explicitly linking system object files so we need to strip them
         # from the output so that they don't get included in the library
         # dependencies.
-        output_verbose_link_cmds='templist=`$CC $CFLAGS -v conftest.$objext -o
libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in
$templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *)
list="$list $z";;esac; done; echo $list'
+        output_verbose_link_cmds='templist=`$CC $CFLAGS -v conftest.$objext -o
libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in
$templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; \*)
list="$list $z";;esac; done; echo $list'

         hardcode_libdir_flag_spec='${wl}--rpath,$libdir'
         export_dynamic_flag_spec='${wl}--export-dynamic'
@@ -358,7 +358,7 @@
         # explicitly linking system object files so we need to strip them
         # from the output so that they don't get included in the library
         # dependencies.
-        output_verbose_link_cmds='templist=`$CC -shared $CFLAGS -v
conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | sed
"s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in
conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done;
echo $list'
+        output_verbose_link_cmds='templist=`$CC -shared $CFLAGS -v
conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | sed
"s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in
conftest.$objext) list="$list $z";; *.$objext);; \*) list="$list $z";;esac;
done; echo $list'
         ;;
     esac
     ;;
@@ -436,7 +436,7 @@
         # explicitly linking system object files so we need to strip them
         # from the output so that they don't get included in the library
         # dependencies.
-        output_verbose_link_cmds='templist=`$CC -shared $CFLAGS -v
conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist |
sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in
conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done;
echo $list'
+        output_verbose_link_cmds='templist=`$CC -shared $CFLAGS -v
conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist |
sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in
conftest.$objext) list="$list $z";; *.$objext);; \*) list="$list $z";;esac;
done; echo $list'
         ;;
       *)
         # FIXME: insert proper C++ library support
@@ -498,7 +498,7 @@
         # explicitly linking system object files so we need to strip them
         # from the output so that they don't get included in the library
         # dependencies.
-        output_verbose_link_cmds='templist=`$CC -shared $CFLAGS -v
conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist |
sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in
conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done;
echo $list'
+        output_verbose_link_cmds='templist=`$CC -shared $CFLAGS -v
conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist |
sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in
conftest.$objext) list="$list $z";; *.$objext);; \*) list="$list $z";;esac;
done; echo $list'
         ;;
       *)
         # FIXME: insert proper C++ library support
@@ -571,7 +571,7 @@
         # explicitly linking system object files so we need to strip them
         # from the output so that they don't get included in the library
         # dependencies.
-        output_verbose_link_cmds='templist=`$CC -G $CFLAGS -v conftest.$objext
2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in
conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done;
echo $list'
+        output_verbose_link_cmds='templist=`$CC -G $CFLAGS -v conftest.$objext
2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in
conftest.$objext) list="$list $z";; *.$objext);; \*) list="$list $z";;esac;
done; echo $list'

        # Archives containing C++ object files must be created using
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is



-aneesh





reply via email to

[Prev in Thread] Current Thread [Next in Thread]