Absolute symlink in linuxthreads/Makefile.am [PATCH]

Jeff Johnston jjohnstn@redhat.com
Fri Dec 3 23:04:00 GMT 2004


Patch checked in.  Thanks.

-- Jeff J.

Shaun Jackman wrote:
> I spoke up too soon. Here's a better patch to the same problem.
> 
> libthread_db.so.1 currently links to
> $(DESTDIR)$(toollibdir)/libthread_db.so. My previous patch instead
> linked it to libthread_db.so. My current patch links it to
> libthread_db-newlib.so.0.0.0.
> 
> Cheers,
> Shaun
> 
> 
> RCS file: /cvs/src/src/newlib/libc/sys/linux/linuxthreads/Makefile.am,v
> retrieving revision 1.1
> diff -u -3 -p -r1.1 Makefile.am
> --- newlib/libc/sys/linux/linuxthreads/Makefile.am      28 May 2003
> 22:04:37 -0000      1.1
> +++ newlib/libc/sys/linux/linuxthreads/Makefile.am      3 Dec 2004
> 16:39:03 -0000
> @@ -91,7 +91,7 @@ doc:
> 
>  install-data-local: install-toollibLIBRARIES
>         -rm -f $(DESTDIR)$(toollibdir)/libthread_db.so.1
> -       ln -s $(DESTDIR)$(toollibdir)/libthread_db.so
> $(DESTDIR)$(toollibdir)/libthread_db.so.1 || cp
> $(DESTDIR)$(toollibdir)/libthread_db.so
> $(DESTDIR)$(toollibdir)/libthread_db.so.1
> +       ln -s `readlink $(DESTDIR)$(toollibdir)/libthread_db.so`
> $(DESTDIR)$(toollibdir)/libthread_db.so.1 || cp
> $(DESTDIR)$(toollibdir)/libthread_db.so
> $(DESTDIR)$(toollibdir)/libthread_db.so.1
> 
>  AM_CFLAGS = -D_XOPEN_SOURCE=600 -D_GNU_SOURCE=1
>  ACLOCAL_AMFLAGS = -I ../../../..
> 
> 
> 
> On Thu, 2 Dec 2004 15:39:33 -0800, Shaun Jackman <sjackman@gmail.com> wrote:
> 
>>linuxthreads/Makefile.am installs an absolute symlink, where a
>>relative symlink will do and is more mobile.
>>
>>Cheers,
>>Shaun
>>
>>RCS file: /cvs/src/src/newlib/libc/sys/linux/linuxthreads/Makefile.am,v
>>retrieving revision 1.1
>>diff -u -3 -p -r1.1 Makefile.am
>>--- Makefile.am 28 May 2003 22:04:37 -0000      1.1
>>+++ Makefile.am 2 Dec 2004 23:33:20 -0000
>>@@ -91,7 +91,7 @@ doc:
>>
>> install-data-local: install-toollibLIBRARIES
>>        -rm -f $(DESTDIR)$(toollibdir)/libthread_db.so.1
>>-       ln -s $(DESTDIR)$(toollibdir)/libthread_db.so
>>$(DESTDIR)$(toollibdir)/libthread_db.so.1 || cp
>>$(DESTDIR)$(toollibdir)/libthread_db.so
>>$(DESTDIR)$(toollibdir)/libthread_db.so.1
>>+       ln -s libthread_db.so
>>$(DESTDIR)$(toollibdir)/libthread_db.so.1 || cp
>>$(DESTDIR)$(toollibdir)/libthread_db.so
>>$(DESTDIR)$(toollibdir)/libthread_db.so.1
>>
>> AM_CFLAGS = -D_XOPEN_SOURCE=600 -D_GNU_SOURCE=1
>> ACLOCAL_AMFLAGS = -I ../../../..



More information about the Newlib mailing list