From ef3257fe3abf44d0cbda88378fbeadba39c087e9 Mon Sep 17 00:00:00 2001 From: agc Date: Thu, 4 Jan 2001 15:10:17 +0000 Subject: The way that shared objects were handled in the PLISTs and bsd.pkg.mk was out of date - it was based on a.out OBJECT_FMT, and added entries in the generated PLISTs to reflect the symlinks that ELF packages uses. It also tried to be clever, and removed and recreated any symbolic links that were created, which has resulted in some fun, especially with packages which use dlopen(3) to load modules. Some recent changes to our ld.so to bring it more into line with other Operating Systems also exposed some cracks. + Modify bsd.pkg.mk and its shared object handling, so that PLISTs now contain the ELF symlinks. + Don't mess about with file system entries when handling shared objects in bsd.pkg.mk, since it's likely that libtool and the BSD *.mk processing will have got it right, and have a much better idea than we do. + Modify PLISTs to contain "ELF symlinks" + On a.out platforms, delete any "ELF symlinks" from the generated PLISTs + On ELF platforms, no extra processing needs to be done in bsd.pkg.mk + Modify print-PLIST target in bsd.pkg.mk to add dummy symlink entries on a.out platforms + Update the documentation in Packages.txt With many thanks to Thomas Klausner for keeping me honest with this. --- cross/i386-linuxglibc1/pkg/PLIST | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cross/i386-linuxglibc1') diff --git a/cross/i386-linuxglibc1/pkg/PLIST b/cross/i386-linuxglibc1/pkg/PLIST index 939a3d0107f..8d0dc95a027 100644 --- a/cross/i386-linuxglibc1/pkg/PLIST +++ b/cross/i386-linuxglibc1/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.2 1999/01/04 22:37:33 tv Exp $ +@comment $NetBSD: PLIST,v 1.3 2001/01/04 15:10:23 agc Exp $ ${TARGET_ARCH}/include/_G_config.h ${TARGET_ARCH}/include/a.out.h ${TARGET_ARCH}/include/alloca.h @@ -573,10 +573,14 @@ ${TARGET_ARCH}/lib/gcrt1.o ${TARGET_ARCH}/lib/libbsd.a ${TARGET_ARCH}/lib/libc.a ${TARGET_ARCH}/lib/libc.so +${TARGET_ARCH}/lib/libc.so.5 +${TARGET_ARCH}/lib/libc.so.5.3 ${TARGET_ARCH}/lib/libc.so.5.3.12 ${TARGET_ARCH}/lib/libgmon.a ${TARGET_ARCH}/lib/libm.a ${TARGET_ARCH}/lib/libm.so +${TARGET_ARCH}/lib/libm.so.5 +${TARGET_ARCH}/lib/libm.so.5.0 ${TARGET_ARCH}/lib/libm.so.5.0.6 ${TARGET_ARCH}/lib/libmcheck.a lib/gcc-lib/${TARGET_ARCH}/${EGCS_INTVERSION}/crtbegin.o -- cgit v1.2.3