summary refs log tree commit diff
path: root/Makerules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-07-10 09:40:15 +0000
committerRoland McGrath <roland@gnu.org>1995-07-10 09:40:15 +0000
commitd819080cbadbd4b820ba77fe8c9b5ed0cbbfe581 (patch)
treed6c0ef96e616a594bba04e704d0042365e5a77ab /Makerules
parent1f4a4317e1bafb185a22951f7921af4f9673811e (diff)
downloadglibc-d819080cbadbd4b820ba77fe8c9b5ed0cbbfe581.tar.gz
glibc-d819080cbadbd4b820ba77fe8c9b5ed0cbbfe581.tar.xz
glibc-d819080cbadbd4b820ba77fe8c9b5ed0cbbfe581.zip
Mon Jul 10 05:39:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
	* sysdeps/mach/hurd/i386/init-first.c (init): Take just one arg,
 	DATA for the entry SP; DATA[-1] is always the return address
 	location.  In both cthreads and non-cthreads cases, use asm to
 	force parameters into %eax and %ecx before return, and mutate
 	DATA[-1] to return to specific asm code to set up the user from
 	%eax and %ecx.
	[PIC] (_init): Caller changed.
	(__libc_init_first) [! PIC] (doinit): Use asm to effect call to init
	with SP unwound to argument data ptr.

Thu Jul  6 14:28:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

	* sysdeps/mach/hurd/dl-sysdep.c (fmh): Fixed this kludge to work
 	when 0x08000000 and up are not mapped.

	* Makerules (stamp$o-$(subdir) rule): Remove the timestamp file
 	before touching it.
	(lib%.so): Use -Wl to get -soname to ld.

	* elf/dlsym.c: Pass final arg to _dl_lookup_symbol.

	* elf/Makefile (libdl.so): Pass $(LDFLAGS.so).
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makerules b/Makerules
index c6de338570..b39cea2bea 100644
--- a/Makerules
+++ b/Makerules
@@ -379,6 +379,8 @@ $(foreach o,$(object-suffixes),$(objpfx)stamp$o-$(subdir)): \
 	$(patsubst %,cd %;,$(objdir)) \
 	$(AR) cru$(verbose) ${O%-lib} \
 	      $(patsubst $(objpfx)%,%,$^)
+# `touch' won't let me touch a world-writable file I don't own.  Sigh.
+	rm -f $@
 	touch $@
 ifdef subdir
 O%-lib = $(filter ../,$(firstword $(objdir) ../))$(patsubst %,$(libtype$*),c)
@@ -553,8 +555,8 @@ ifeq (yes,$(build-shared))
 # $(LDLIBS-%.so) may contain -l switches to generate run-time dependencies
 # on other shared objects.
 lib%.so: lib%_pic.a
-	$(LINK.o) -shared -o $@ \
-		  -soname lib$(libprefix)$*.so$($(@F)-version) \
+	$(LINK.o) -shared -o $@ -Wl,-soname \
+		  -Wl,lib$(libprefix)$(notdir $*).so$($(@F)-version) \
 		  $(LDFLAGS.so) $(LDFLAGS-$(notdir $*).so) \
 		  -L$(firstword $(objdir) .)  -L$(common-objpfx:%/=%) \
 		  $(LDLIBS-$(notdir $*).so) -Wl,--whole-archive $< \