1995-05-02 06:35:55 +00:00
|
|
|
# Makefile for elf subdirectory of GNU C Library.
|
|
|
|
|
Fri Apr 19 00:49:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value
for nonmatching nonerror (instead of !MATCH).
(rpmatch): Use it, so we return -1 when NOEXPR doesn't match either.
* resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of
unsigned long for variable NET2.
* time/etcetera, time/europe, time/solar89: Updated from ADO's 96e.
Tue Apr 9 14:37:31 1996 Ulrich Drepper <drepper@cygnus.com>
* catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h,
catgets/config.h, catgets/gencat.c, catgets/nl_types.h,
catgets/open_catalog.c: New files. Implementation of XPG4
compliant catgets() function and needed tools.
* Makefile (subdirs): Add catgets.
Thu Apr 18 23:36:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES.
Wed Apr 10 20:48:43 1996 Ulrich Drepper <drepper@cygnus.com>
* stdio-common/vfprintf.c: Correct some typos.
* sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c,
sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of
__signgam.
Thu Apr 18 21:07:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* Makerules (no-whole-archive): New variable.
(build-shlib): Use it.
* elf/Makefile (libdl.so): Use it.
* configure.in (libc_cv_ld_no_whole_archive): New check for
--no-whole-archive.
* config.make.in (have-no-whole-archive): New variable.
* stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc
from 3 to 4.
* Make-dist: Include version.mk.
(version, release): Variables removed.
* Makeconfig (version.mk): New target.
Fri Apr 19 01:42:18 1996 Ulrich Drepper <drepper@cygnus.com>
* locale/Makefile (headers): Add langinfo.h.
(CPPFLAGS): Remove -Iliblib.
1996-04-20 00:05:25 +00:00
|
|
|
# Copyright (C) 1995, 1996 Free Software Foundation, Inc.
|
1995-02-21 06:15:34 +00:00
|
|
|
# This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
# The GNU C Library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Library General Public License as
|
|
|
|
# published by the Free Software Foundation; either version 2 of the
|
|
|
|
# License, or (at your option) any later version.
|
|
|
|
|
|
|
|
# The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Library General Public License for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
# License along with the GNU C Library; see the file COPYING.LIB. If
|
|
|
|
# not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
|
|
|
# Cambridge, MA 02139, USA.
|
|
|
|
|
1995-05-02 06:35:55 +00:00
|
|
|
subdir := elf
|
|
|
|
|
|
|
|
headers := elf.h libelf.h link.h dlfcn.h
|
|
|
|
routines := init-first
|
|
|
|
|
|
|
|
extra-libs = libelf libdl
|
|
|
|
libelf-routines := elf_hash
|
|
|
|
libdl-routines := dlopen dlclose dlsym dlerror
|
|
|
|
libdl-inhibit-o = $(filter-out .so,$(object-suffixes)) # Build only shared.
|
|
|
|
|
1995-11-23 04:53:06 +00:00
|
|
|
rtld-routines := rtld $(addprefix dl-,minimal load lookup object reloc \
|
1996-06-04 05:18:15 +00:00
|
|
|
deps runtime sysdep error init fini)
|
1995-09-21 06:24:21 +00:00
|
|
|
distribute = $(rtld-routines:=.c) dynamic-link.h do-rel.h \
|
1995-11-07 21:46:52 +00:00
|
|
|
soinit.c sofini.c ldd.sh.in linux-compat.c
|
1995-02-21 06:15:34 +00:00
|
|
|
|
1996-02-19 23:14:44 +00:00
|
|
|
all: # Make this the default target; it will be defined in Rules.
|
|
|
|
|
1995-05-02 06:35:55 +00:00
|
|
|
include ../Makeconfig
|
|
|
|
|
|
|
|
ifeq (yes,$(build-shared))
|
1995-09-21 06:24:21 +00:00
|
|
|
extra-objs = $(rtld-routines:=.so) soinit.so sofini.so
|
1996-05-04 13:57:05 +00:00
|
|
|
generated = librtld.so dl-allobjs.so
|
1995-11-08 02:28:15 +00:00
|
|
|
install-others = $(slibdir)/$(rtld-installed-name)
|
1995-10-09 07:06:29 +00:00
|
|
|
install-bin = ldd
|
1995-11-07 21:46:52 +00:00
|
|
|
|
1996-05-13 23:54:12 +00:00
|
|
|
# Make sure this is built in the `make lib' pass so it can be used
|
|
|
|
# to run programs during the `make others' pass.
|
|
|
|
subdir_lib: $(objpfx)ld.so
|
|
|
|
|
1995-11-07 21:46:52 +00:00
|
|
|
ifneq (,$(filter linux%,$(config-os)))
|
|
|
|
extra-objs += linux-compat.so
|
1995-11-08 02:28:15 +00:00
|
|
|
install-others += $(slibdir)/ld-linux.so.1
|
1996-05-13 23:54:12 +00:00
|
|
|
subdir_lib: $(objpfx)ld-linux.so.1
|
1995-11-07 21:46:52 +00:00
|
|
|
endif
|
1995-05-02 06:35:55 +00:00
|
|
|
endif
|
1995-02-21 06:15:34 +00:00
|
|
|
|
|
|
|
include ../Rules
|
1995-05-02 06:35:55 +00:00
|
|
|
|
1995-11-07 21:46:52 +00:00
|
|
|
|
1996-05-04 13:57:05 +00:00
|
|
|
# Command to link into a larger single relocatable object.
|
|
|
|
reloc-link = $(LINK.o) -nostdlib -nostartfiles -r -o $@
|
|
|
|
|
|
|
|
$(objpfx)dl-allobjs.so: $(rtld-routines:%=$(objpfx)%.so)
|
|
|
|
$(reloc-link) $^
|
|
|
|
|
1995-11-07 21:46:52 +00:00
|
|
|
# Link together the dynamic linker into a single relocatable object.
|
|
|
|
# We use this to produce both the ABI-compliant and Linux-compatible
|
|
|
|
# dynamic linker shared objects below.
|
1996-05-04 13:57:05 +00:00
|
|
|
$(objpfx)librtld.so: $(objpfx)dl-allobjs.so \
|
1995-11-07 21:46:52 +00:00
|
|
|
$(patsubst %,$(common-objpfx)lib%_pic.a,\
|
|
|
|
elf c $(LDLIBS-c.so:-l%=%))
|
1996-05-04 13:57:05 +00:00
|
|
|
$(reloc-link) '-Wl,-(' $^ -lgcc '-Wl,-)'
|
1995-05-02 06:35:55 +00:00
|
|
|
|
1996-03-18 18:32:47 +00:00
|
|
|
$(objpfx)ld.so: $(objpfx)librtld.so
|
|
|
|
$(rtld-link) -Wl,-soname=$(rtld-installed-name)
|
|
|
|
$(objpfx)ld-linux.so.1: $(objpfx)librtld.so
|
|
|
|
$(rtld-link) -Wl,-soname=ld-linux.so.1
|
|
|
|
|
|
|
|
define rtld-link
|
|
|
|
$(LINK.o) -nostdlib -nostartfiles -shared -o $@ \
|
|
|
|
-Wl,-rpath=$(default-rpath) $^
|
|
|
|
endef
|
1995-11-07 21:46:52 +00:00
|
|
|
|
|
|
|
# The Linux-compatible dynamic linker shared object is just the same
|
|
|
|
# with one object file of compatibility initialization code added.
|
|
|
|
$(objpfx)ld-linux.so.1: $(objpfx)linux-compat.so
|
|
|
|
|
|
|
|
|
1995-05-11 02:49:38 +00:00
|
|
|
$(objpfx)libdl.so: $(objpfx)libdl_pic.a $(common-objpfx)libc.so $(objpfx)ld.so
|
|
|
|
$(patsubst %/,cd %;,$(objpfx)) \
|
|
|
|
$(LINK.o) -shared -o $(@:$(objpfx)%=%) \
|
1995-07-06 18:28:32 +00:00
|
|
|
$(LDFLAGS.so) $(LDFLAGS-dl.so) \
|
Fri Apr 19 00:49:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value
for nonmatching nonerror (instead of !MATCH).
(rpmatch): Use it, so we return -1 when NOEXPR doesn't match either.
* resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of
unsigned long for variable NET2.
* time/etcetera, time/europe, time/solar89: Updated from ADO's 96e.
Tue Apr 9 14:37:31 1996 Ulrich Drepper <drepper@cygnus.com>
* catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h,
catgets/config.h, catgets/gencat.c, catgets/nl_types.h,
catgets/open_catalog.c: New files. Implementation of XPG4
compliant catgets() function and needed tools.
* Makefile (subdirs): Add catgets.
Thu Apr 18 23:36:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES.
Wed Apr 10 20:48:43 1996 Ulrich Drepper <drepper@cygnus.com>
* stdio-common/vfprintf.c: Correct some typos.
* sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c,
sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of
__signgam.
Thu Apr 18 21:07:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* Makerules (no-whole-archive): New variable.
(build-shlib): Use it.
* elf/Makefile (libdl.so): Use it.
* configure.in (libc_cv_ld_no_whole_archive): New check for
--no-whole-archive.
* config.make.in (have-no-whole-archive): New variable.
* stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc
from 3 to 4.
* Make-dist: Include version.mk.
(version, release): Variables removed.
* Makeconfig (version.mk): New target.
Fri Apr 19 01:42:18 1996 Ulrich Drepper <drepper@cygnus.com>
* locale/Makefile (headers): Add langinfo.h.
(CPPFLAGS): Remove -Iliblib.
1996-04-20 00:05:25 +00:00
|
|
|
-Wl,--whole-archive $(^:$(objpfx)%=%) $(no-whole-archive)
|
1995-10-09 07:06:29 +00:00
|
|
|
|
1995-11-08 02:28:15 +00:00
|
|
|
$(slibdir)/$(rtld-installed-name): $(objpfx)ld.so; $(do-install-program)
|
|
|
|
$(slibdir)/ld-linux.so.1: $(objpfx)ld-linux.so.1; $(do-install-program)
|
1995-10-09 07:06:29 +00:00
|
|
|
|
1996-05-15 15:49:26 +00:00
|
|
|
$(objpfx)ldd: ldd.sh.in Makefile
|
|
|
|
sed 's%@RTLD@%$(slibdir)/$(rtld-installed-name)%g' < $< > $@.new
|
1995-11-08 02:28:15 +00:00
|
|
|
chmod 555 $@.new
|
1995-10-09 07:06:29 +00:00
|
|
|
mv -f $@.new $@
|