diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile index 0d47b07c14..38559c26d5 100644 --- a/Makefile +++ b/Makefile @@ -90,9 +90,9 @@ before-compile = $(objpfx)version-info.h echo-headers: subdir_echo-headers # What to install. -install-others = $(includedir)/gnu/stubs.h +install-others = $(inst_includedir)/gnu/stubs.h ifeq (yes,$(build-shared)) -install-others += $(includedir)/gnu/lib-names.h +install-others += $(inst_includedir)/gnu/lib-names.h endif install-bin = glibcbug @@ -111,8 +111,11 @@ include Makerules # Install from subdirectories too. install: subdir_install + +# Create linkfs for shared libraries using the `ldconfig' program is possible. ifeq (no,$(cross-compiling)) ifeq (yes,$(build-shared)) +install: test ! -x $(common-objpfx)elf/ldconfig || \ $(common-objpfx)elf/ldconfig -d endif @@ -175,7 +178,7 @@ subdir-stubs := $(foreach dir,$(subdirs),$(common-objpfx)stub-$(dir)) # iterates over all the subdirs; subdir_install in each subdir depends on # the subdir's stubs file. Having more direct dependencies would result in # extra iterations over the list for subdirs and many recursive makes. -$(includedir)/gnu/stubs.h: subdir_install +$(inst_includedir)/gnu/stubs.h: subdir_install @rm -f $(objpfx)stubs.h (echo '/* This file is automatically generated.';\ echo ' It defines a symbol `__stub_FUNCTION'\'' for each function';\ @@ -191,7 +194,7 @@ ifeq (yes,$(build-shared)) # Like gnu/stubs.h the gnu/lib-names.h header is not used while building the # libc itself. So we generate it while installing. -$(includedir)/gnu/lib-names.h: $(common-objpfx)soversions.mk +$(inst_includedir)/gnu/lib-names.h: $(common-objpfx)soversions.mk @rm -f $(objpfx)lib-names.h (echo '/* This file is automatically generated.';\ echo ' It defines macros to allow user program to find the shared';\ @@ -307,7 +310,7 @@ distribute := README INSTALL FAQ NOTES NEWS PROJECTS \ distribute := $(strip $(distribute)) generated := $(generated) stubs.h version-info.h -README: README.template version.c ; # Make-dist should update README. +README: README.template version.h ; # Make-dist should update README. define format-me @rm -f $@ |