This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Absolute symlink in linuxthreads/Makefile.am [PATCH]


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 ../../../..


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]