From 6e5801f728a121cc002d7f6912dab2d9b60a3743 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 27 Mar 2000 18:19:46 +0000 Subject: 2000-03-27 Roland McGrath Locking support for stdio streams with glibc-2.2 libio. EXPERIMENTAL! * lockfile.c: New file. * libthreads.map: New file. * Makefile (SRCS): Add lockfile.c. [$(VERSIONING) = yes] ($(libname).so.$(hurd-version)): Depend on $(srcdir)/$(libname).map to get version script into the link. --- libthreads/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'libthreads/Makefile') diff --git a/libthreads/Makefile b/libthreads/Makefile index 5b2bc62a..ee862366 100644 --- a/libthreads/Makefile +++ b/libthreads/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. +# Copyright (C) 1994,95,96,97,2000 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -21,7 +21,7 @@ makemode := library # In GNU mig_support.c, sync.c and machine/lock.s are omitted; that work is # all done in libc. SRCS := call.c cprocs.c cthread_data.c cthreads.c stack.c \ - cancel-cond.c rwlock.c + cancel-cond.c rwlock.c lockfile.c I386SRCS := i386/csw.S i386/thread.c # In GNU machine/cthreads.h is omitted; that work is done in libc headers. @@ -50,3 +50,11 @@ lndist-i386-files: $(top_srcdir)/hurd-snap/$(dir)/i386 $(top_srcdir)/hurd-snap/$(dir)/i386: mkdir $@ + +ifeq ($(VERSIONING),yes) + +# Adding this dependency gets it included in the command line, +# where ld will read it as a linker script. +$(libname).so.$(hurd-version): $(srcdir)/$(libname).map + +endif -- cgit v1.2.3