+1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * libc.map: Export internal versions of cancelable functions.
+
+1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * Makerules (MAKEFLAGS): Append `r'.
+
+1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * Makeconfig: Define have-thread-library, shared-thread-library
+ and static-thread-library if a thread library is available. Don't
+ define rt.
+ * nscd/Makefile: Compile nscd if have-thread-library. Rename
+ nscd-routines to nscd-modules. Use shared-thread-library and
+ static-thread-library in dependencies.
+ * rt/Makefile: Only compile librt if have-thread-library is
+ defined.
+ * Makefile (subdirs): Always include rt subdir.
+
+1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * Makeconfig ($(common-objpfx)gnu/lib-names.h): Add dummy command.
+
1998-03-14 21:55 Ulrich Drepper <drepper@cygnus.com>
* configure.in: Recognize variations for 32 MIPS processors.
rtld-version-installed-name = ld-$(version).so
endif
-# The librt must be linked with the thread library, at least
-# for now.
+endif # build-shared
+
ifneq (,$(findstring linuxthreads,$(add-ons)))
shared-thread-library = $(common-objpfx)linuxthreads/libpthread.so
-# Yes, we can compile librt.
-rt = rt
+static-thread-library = $(common-objpfx)linuxthreads/libpthread.a
+have-thread-library = yes
endif
-endif # build-shared
-
endif # Makeconfig not yet included
stdio-common $(stdio) malloc string wcsmbs time dirent grp pwd \
posix io termios resource misc socket sysvipc gmon gnulib iconv \
iconvdata wctype manual shadow md5-crypt po argp $(add-ons) nss \
- localedata timezone $(rt) $(sysdep-subdirs) $(binfmt-subdir)
+ localedata timezone rt $(sysdep-subdirs) $(binfmt-subdir)
export subdirs := $(subdirs) # Benign, useless in GNU make before 3.63.
# The mach and hurd subdirectories have many generated header files which
\f\f
# Maximize efficiency by minimizing the number of rules.
.SUFFIXES: # Clear the suffix list. We don't use suffix rules.
+# Don't define any builtin rules.
+MAKEFLAGS := $(MAKEFLAGS)r
# Generic rule for making directories.
%/:
__strcasecmp; __write; _strerror_internal; _dl_sysdep_output;
_dl_debug_message;
__ffs;
+ __close; __connect; __fcntl; __lseek; __open; __read; __send; __wait;
# Exception handling support functions from libgcc
__register_frame; __register_frame_table; __deregister_frame;
+1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * libpthread.map: Add __libc_internal_tsd_get and
+ __libc_internal_tsd_set. Add missing cancelable functions. Export
+ libc internal versions of the cancelable functions.
+
1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
* weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
_pthread_cleanup_pop; _pthread_cleanup_pop_restore; _pthread_cleanup_push;
_pthread_cleanup_push_defer;
+ # Internal libc interface to libpthread
+ __libc_internal_tsd_get; __libc_internal_tsd_set;
+
# Overwritten libc functions.
- close; fcntl; fork; fsync; lseek; msync; nanosleep; open; pause; raise;
- read; system; tcdrain; wait; waitpid; write;
+ close; connect; fcntl; fork; fsync; lseek; msync; nanosleep; open;
+ pause; raise; read; recv; recvfrom; recvmsg; send; sendmsg; sendto;
+ system; tcdrain; wait; waitpid; write;
+ __close; __connect; __fcntl; __lseek; __open; __read; __send; __wait;
+ __write;
# POSIX.1c extensions to libc.
flockfile; funlockfile; ftrylockfile;
include ../Makeconfig
-# We can later add the names of other thread packages here.
-ifneq (,$(findstring linuxthreads,$(add-ons)))
+ifeq ($(have-thread-library),yes)
others := nscd
install-sbin := nscd
-nscd-routines := nscd connections pwdcache getpwnam_r getpwuid_r grpcache \
- getgrnam_r getgrgid_r dbg_log nscd_conf nscd_stat
-extra-objs := $(nscd-routines:=.o)
+nscd-modules := nscd connections pwdcache getpwnam_r getpwuid_r grpcache \
+ getgrnam_r getgrgid_r dbg_log nscd_conf nscd_stat
+extra-objs := $(nscd-modules:=.o)
endif
-distribute := nscd.h dbg_log.h $(nscd-routines:=.c) TODO nscd.conf nscd.init \
+distribute := nscd.h dbg_log.h $(nscd-modules:=.c) TODO nscd.conf nscd.init \
nscd_proto.h
include ../Rules
+$(objpfx)nscd: $(nscd-modules:%=$(objpfx)%.o)
+
ifeq ($(build-shared),yes)
-$(objpfx)nscd: $(nscd-routines:%=$(objpfx)%.o) $(objpfx)../linuxthreads/libpthread.so$(libpthread.so-version) $(objpfx)../nis/libnsl.so$(libnsl.so-version)
+$(objpfx)nscd: $(shared-thread-library) $(common-objpfx)nis/libnsl.so
else
-$(objpfx)nscd: $(nscd-routines:%=$(objpfx)%.o) $(objpfx)../linuxthreads/libpthread.a $(objpfx)../nis/libnsl.a
+$(objpfx)nscd: $(static-thread-library) $(common-objpfx)nis/libnsl.a
endif
-# Copyright (C) 1997 Free Software Foundation, Inc.
+# Copyright (C) 1997, 1998 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
headers := aio.h
-extra-libs := librt
-extra-libs-others := $(extra-libs)
-
librt-routines := aio_cancel aio_error aio_fsync aio_misc aio_read \
aio_read64 aio_return aio_suspend aio_write \
aio_write64 lio_listio lio_listio64 aio_sigqueue \
librt-map := librt.map
-distribute := aio_misc.h
+# Make sure that everything is distributed independent of configuration.
+distribute := aio_misc.h $(librt-routines:=.c) $(librt-map)
+
+include ../Makeconfig
+
+ifeq ($(have-thread-library),yes)
+
+extra-libs := librt
+extra-libs-others := $(extra-libs)
+
+endif
include ../Rules