This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: Absolute symlink in linuxthreads/Makefile.am [PATCH]
- From: Shaun Jackman <sjackman at gmail dot com>
- To: newlib at sources dot redhat dot com
- Date: Fri, 3 Dec 2004 08:44:10 -0800
- Subject: Re: Absolute symlink in linuxthreads/Makefile.am [PATCH]
- References: <7f45d93904120215393448d0e2@mail.gmail.com>
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
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 ../../../..