Tue Oct 10 23:08:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>

* Makerules (build-shlib): Pass -rpath and -rpath-link options.
	(LDFLAGS-c.so): Don't pass -dynamic-linker here.
	* Makeconfig (+link): Pass $(sysdep-LDFLAGS).
	(link-libc): Pass -rpath and -rpath-link options.

	* MakeTAGS (all-dirs): Omit CVS directories.
	Specify vpath directives to find source files in $(all-dirs).
	(sources, headers): Append sources and headers from $(all-dist) to
	these. 
	(all-dist): Filter them out of this.
	(all-headers, all-sources): Use $(shell find ...) instead of
	$(wildcard ...).

	* sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): New variable; pass
	-rpath-link.

	* hurd/hurdexec.c: Pass poly and dealloc args to __file_exec.

	* elf/Makefile (install-others): Add missing $.

	* mach/Makefile ($(objpfx)errsystems.c): Rule reenabled.
This commit is contained in:
Roland McGrath 1995-10-11 03:34:46 +00:00
parent b122c7038e
commit 8e3cc80f6d
12 changed files with 79 additions and 30 deletions

View File

@ -1,5 +1,29 @@
Tue Oct 10 23:08:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* Makerules (build-shlib): Pass -rpath and -rpath-link options.
(LDFLAGS-c.so): Don't pass -dynamic-linker here.
* Makeconfig (+link): Pass $(sysdep-LDFLAGS).
(link-libc): Pass -rpath and -rpath-link options.
* MakeTAGS (all-dirs): Omit CVS directories.
Specify vpath directives to find source files in $(all-dirs).
(sources, headers): Append sources and headers from $(all-dist) to
these.
(all-dist): Filter them out of this.
(all-headers, all-sources): Use $(shell find ...) instead of
$(wildcard ...).
* sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): New variable; pass
-rpath-link.
* hurd/hurdexec.c: Pass poly and dealloc args to __file_exec.
* elf/Makefile (install-others): Add missing $.
Mon Oct 9 02:54:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> Mon Oct 9 02:54:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* mach/Makefile ($(objpfx)errsystems.c): Rule reenabled.
* Makeconfig (config-LDFLAGS): Define to * Makeconfig (config-LDFLAGS): Define to
-Wl-dynamic-linker=$(libdir)$(rtld-installed-name). -Wl-dynamic-linker=$(libdir)$(rtld-installed-name).
(rtld-installed-name): New variable. (rtld-installed-name): New variable.

View File

@ -43,7 +43,8 @@ sysdep-dirs := $(addprefix $(sysdep_dir)/,$(sysdirs))
ifndef sysdep_dirs ifndef sysdep_dirs
# Find all sysdep directories. # Find all sysdep directories.
sysdep_dirs := $(shell find $(..)sysdeps -type d ! -name RCS -print) sysdep_dirs := $(shell find $(..)sysdeps -type d \
! -name RCS ! -name CVS -print)
endif endif
# Find all sysdep dirs there are, but putting the ones # Find all sysdep dirs there are, but putting the ones
@ -53,6 +54,11 @@ all-dirs := $(objdir) \
$(source_dirs) \ $(source_dirs) \
$(filter-out $(sysdep-dirs),$(sysdep_dirs)) $(filter-out $(sysdep-dirs),$(sysdep_dirs))
vpath %.h $(all-dirs)
vpath %.c $(all-dirs)
vpath %.S $(all-dirs)
vpath %.s $(all-dirs)
# Find all the subdirs there are, but putting the ones # Find all the subdirs there are, but putting the ones
# we are configured to use first and preserving their order. # we are configured to use first and preserving their order.
ifndef subdir ifndef subdir
@ -71,18 +77,21 @@ else
all-dist = $(distribute) all-dist = $(distribute)
endif endif
sources += $(filter %.c %.s %.S,$(all-dist))
headers += $(filter %.h,$(all-dist))
all-dist := $(filter-out %.h %.c %.s %.S,$(all-dist))
# All different versions of $(sources), preserving the configured sysdep # All different versions of $(sources), preserving the configured sysdep
# directory order. # directory order.
all-sources = $(wildcard $(foreach file,$(sources),\ all-sources = $(shell find $(all-dirs) -maxdepth 1 \( -name fnord \
$(file) \ $(foreach file,$(sort $(sources) $(sources:.c=.S) \
$(foreach dir,$(all-dirs),\ $(sources:.c=.s)),\
$(dir)/$(file) \ -o -name $(file)) \
$(dir)/$(file:.c=.S) \ \) -print)
$(dir)/$(file:.c=.s))))
all-headers = $(wildcard $(foreach file,$(headers),\ all-headers = $(shell find $(all-dirs) -maxdepth 1 \( -name fnord \
$(file) \ $(foreach file,$(headers),-o -name $(file)) \
$(foreach dir,$(all-dirs),$(dir)/$(file)))) \) -print)
tags_sources := $(strip $(tags_sources)) tags_sources := $(strip $(tags_sources))

View File

@ -267,10 +267,11 @@ endif
# Command for linking programs with the C library. # Command for linking programs with the C library.
ifndef +link ifndef +link
+link = $(CC) -nostdlib -nostartfiles $(config-LDFLAGS) $(LDFLAGS) -o $@ \ +link = $(CC) -nostdlib -nostartfiles -o $@ \
$(addprefix $(csu-objpfx),start.o $(+preinit)) \ $(sysdep-LDFLAGS) $(config-LDFLAGS) $(LDFLAGS) \
$(^:$(common-objpfx)libc.a=$(link-libc)) \ $(addprefix $(csu-objpfx),start.o $(+preinit)) \
$(addprefix $(csu-objpfx),$(+postinit)) $(^:$(common-objpfx)libc.a=$(link-libc)) \
$(addprefix $(csu-objpfx),$(+postinit))
endif endif
ifndef config-LDFLAGS ifndef config-LDFLAGS
ifeq (yes,$(build-shared)) ifeq (yes,$(build-shared))
@ -279,7 +280,8 @@ endif
endif endif
ifndef link-libc ifndef link-libc
ifeq (yes,$(build-shared)) ifeq (yes,$(build-shared))
link-libc = -L$(common-objdir) -lc $(gnulib) link-libc = -Wl,-rpath-link=$(common-objdir) -Wl,-rpath=$(libdir) \
$(common-objpfx)libc.so $(gnulib)
else else
link-libc = $(common-objpfx)libc.a $(gnulib) $(common-objpfx)libc.a link-libc = $(common-objpfx)libc.a $(gnulib) $(common-objpfx)libc.a
endif endif

View File

@ -553,10 +553,10 @@ ifeq (yes,$(build-shared))
lib%.so: lib%_pic.a; $(build-shlib) lib%.so: lib%_pic.a; $(build-shlib)
define build-shlib define build-shlib
$(LINK.o) -shared -o $@ -Wl,-soname \ $(LINK.o) -shared -o $@ $(sysdep-LDFLAGS) $(config-LDFLAGS) \
-Wl,lib$(libprefix)$(@F:lib%.so=%).so$($(@F)-version) \ -Wl,-soname=lib$(libprefix)$(@F:lib%.so=%).so$($(@F)-version) \
$(LDFLAGS.so) $(LDFLAGS-$(@F:lib%.so=%).so) \ $(LDFLAGS.so) $(LDFLAGS-$(@F:lib%.so=%).so) \
-L$(firstword $(objdir) .) -L$(common-objpfx:%/=%) \ -Wl,-rpath-link=$(common-objdir) -Wl,-rpath=$(libdir) \
-Wl,--whole-archive $^ $(LDLIBS-$(@F:lib%.so=%).so) -Wl,--whole-archive $^ $(LDLIBS-$(@F:lib%.so=%).so)
endef endef
@ -565,7 +565,7 @@ endef
# since we define our own `.init' section specially. # since we define our own `.init' section specially.
LDFLAGS-c.so = -nostdlib -nostartfiles LDFLAGS-c.so = -nostdlib -nostartfiles
# Give libc.so an entry point and make it directly runnable itself. # Give libc.so an entry point and make it directly runnable itself.
LDFLAGS-c.so += -Wl,-dynamic-linker -Wl,/lib/ld.so -e __libc_print_version LDFLAGS-c.so += -e __libc_print_version
# Use our own special initializer and finalizer files for libc.so. # Use our own special initializer and finalizer files for libc.so.
elfobjdir := $(firstword $(objdir) $(..)elf) elfobjdir := $(firstword $(objdir) $(..)elf)
$(common-objpfx)libc.so: $(elfobjdir)/soinit.so \ $(common-objpfx)libc.so: $(elfobjdir)/soinit.so \

View File

@ -37,7 +37,7 @@ include ../Makeconfig
ifeq (yes,$(build-shared)) ifeq (yes,$(build-shared))
extra-objs = $(rtld-routines:=.so) soinit.so sofini.so extra-objs = $(rtld-routines:=.so) soinit.so sofini.so
install-others = $(libdir)(rtld-installed-name) install-others = $(libdir)$(rtld-installed-name)
install-bin = ldd install-bin = ldd
endif endif

5
gmon/.cvsignore Normal file
View File

@ -0,0 +1,5 @@
*.gz *.Z *.tar *.tgz
=*
TODO COPYING* AUTHORS copyr-* copying.*
glibc-*
distinfo

View File

@ -217,14 +217,14 @@ _hurd_exec (task_t task, file_t file,
*pdp++ = dtable[i]; *pdp++ = dtable[i];
} }
err = __file_exec (file, task, err = __file_exec (file, task, MACH_MSG_TYPE_COPY_SEND,
_hurd_exec_flags & EXEC_INHERITED, _hurd_exec_flags & EXEC_INHERITED,
args, argslen, env, envlen, args, argslen, 0, env, envlen, 0,
dtable, MACH_MSG_TYPE_COPY_SEND, dtablesize, dtable, MACH_MSG_TYPE_COPY_SEND, dtablesize, 0,
ports, MACH_MSG_TYPE_COPY_SEND, _hurd_nports, ports, MACH_MSG_TYPE_COPY_SEND, _hurd_nports, 0,
ints, INIT_INT_MAX, ints, INIT_INT_MAX, 0,
please_dealloc, pdp - please_dealloc, please_dealloc, pdp - please_dealloc, 0,
NULL, 0); NULL, 0, 0);
} }
/* Release references to the standard ports. */ /* Release references to the standard ports. */

5
intl/.cvsignore Normal file
View File

@ -0,0 +1,5 @@
*.gz *.Z *.tar *.tgz
=*
TODO COPYING* AUTHORS copyr-* copying.*
glibc-*
distinfo

View File

@ -184,7 +184,6 @@ endif
# Be sure not to make these with implicit rules from foo.defs. # Be sure not to make these with implicit rules from foo.defs.
mach.h mach/memory_object.h: ; mach.h mach/memory_object.h: ;
ifneq (,)
# A gcc bug prevents the generated file from working properly, # A gcc bug prevents the generated file from working properly,
# so we have one in the distribution for the time being. # so we have one in the distribution for the time being.
generated += errsystems.c generated += errsystems.c
@ -192,4 +191,3 @@ $(objpfx)errsystems.c: errsystems.awk err_*.sub \
$(wildcard $(addsuffix /err_*.sub,$(+sysdep_dirs))) $(wildcard $(addsuffix /err_*.sub,$(+sysdep_dirs)))
gawk -v subsys='$(filter-out $<,$^)' -f $^ > $@.n gawk -v subsys='$(filter-out $<,$^)' -f $^ > $@.n
mv $@.n $@ mv $@.n $@
endif

View File

@ -4365,7 +4365,7 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
for that group and all inner ones, so that if we fail back for that group and all inner ones, so that if we fail back
to this point, the group's information will be correct. to this point, the group's information will be correct.
For example, in \(a*\)*\1, we need the preceding group, For example, in \(a*\)*\1, we need the preceding group,
and in \(\(a*\)b*\)\2, we need the inner group. */ and in \(zz\(a*\)b*\)\2, we need the inner group. */
/* We can't use `p' to check ahead because we push /* We can't use `p' to check ahead because we push
a failure point to `p + mcnt' after we do this. */ a failure point to `p + mcnt' after we do this. */

View File

@ -131,6 +131,7 @@ endif
# For the shared library, we don't need to do the linker script machination. # For the shared library, we don't need to do the linker script machination.
# Instead, we specify the required libraries when building the shared object. # Instead, we specify the required libraries when building the shared object.
LDLIBS-c.so = -lmachuser -lhurduser LDLIBS-c.so = -lmachuser -lhurduser
sysdep-LDFLAGS += -Wl,-rpath-link=$(..)mach:$(..)hurd
endif # in-Makerules endif # in-Makerules

5
sysvipc/.cvsignore Normal file
View File

@ -0,0 +1,5 @@
*.gz *.Z *.tar *.tgz
=*
TODO COPYING* AUTHORS copyr-* copying.*
glibc-*
distinfo