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

Richard PALO <[email protected]>
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <[email protected]>
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):

richard@omnis:/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:
richard@omnis:/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/


_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.