libtool
[Top][All Lists]
Advanced

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

[sr #108987] libtool doesn't like simple RM defined (without options)


From: Richard PALO
Subject: [sr #108987] libtool doesn't like simple RM defined (without options)
Date: Sun, 28 Feb 2016 14:20:48 +0000
User-agent: Mozilla/5.0 (X11; SunOS i86pc; rv:) Gecko/20160211 Firefox/

URL:
  <http://savannah.gnu.org/support/?108987>

                 Summary: libtool doesn't like simple RM defined (without
options)
                 Project: GNU Libtool
            Submitted by: risto3
            Submitted on: dim. 28 févr. 2016 14:20:46 GMT
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: None

    _______________________________________________________

Details:

noticed on pkgsrc libtool 2.4.2 (patched)
as well as on master

libtool uses a construct in numerous places '${RM}r' where
if defined simply to the full path breaks miserably.

Here is a simple example (code source unimportant):

what works (this is after a --mode=compile stage):

address@hidden:/home/richard/src/tlibtool$ ../libtool/libtool -v --tag=CXX
--mode=link g++ -shared -o libfoo.la -Wl,-h libfoo.so foo.lo
libtool: link: rm -fr  .libs/libfoo.a .libs/libfoo.la
libtool: link: ar cr .libs/libfoo.a .libs/foo.o 
libtool: link: ranlib .libs/libfoo.a
libtool: link: creating libfoo.la
libtool: link: ( cd ".libs" && rm -f "libfoo.la" && ln -s "../libfoo.la"
"libfoo.la" )

what doesn't:
address@hidden:/home/richard/src/tlibtool$ RM=/usr/bin/rm ../libtool/libtool -v
--tag=CXX --mode=link g++ -shared -o libfoo.la -Wl,-h libfoo.so foo.lo
libtool: link: /usr/bin/rmr  .libs/libfoo.a .libs/libfoo.la
../libtool/libtool[1851]: eval[1]: /usr/bin/rmr: not found [No such file or
directory]
libtool: link: ar cr .libs/libfoo.a .libs/foo.o 
libtool: link: ranlib .libs/libfoo.a
libtool: link: creating libfoo.la
libtool: link: ( cd ".libs" && /usr/bin/rm "libfoo.la" && ln -s "../libfoo.la"
"libfoo.la" )


libtool should naturally test RM prior to using as thus.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/support/?108987>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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