]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(symbolic-link-prog, symbolic-link-list): New macros.
authorUlrich Drepper <drepper@redhat.com>
Tue, 21 Jul 1998 12:15:16 +0000 (12:15 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 21 Jul 1998 12:15:16 +0000 (12:15 +0000)
(install-clean-symbolic-link-list): New target.
(install): Depend on install-clean-symbolic-link-list.
(make-shlib-link): Changed for $(symbolic-link-list).

Makerules

index 9f923d5bb9ca8cce9546cd228946603840a39220..9609659182b1d98d5e0cb82ecf75b9db1b6d08a1 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -648,17 +648,24 @@ mv -f $@.new $@
 endef
 endif
 
-# XXX The following will have to be changed when `ldconfig' is available.
-ifneq (yes,$(cross-compiling))
-ifeq (yes,$(has-ldconfig))
+ifeq (no,$(cross-compiling))
+ifeq (yes,$(build-shared))
+# We need to clean the symbolic link list first.
+symbolic-link-prog := $(common-objpfx)elf/sln
+symbolic-link-list := $(common-objpfx)elf/symlink.list
+install: install-clean-symbolic-link-list
+install-clean-symbolic-link-list:
+       rm -f $(symbolic-link-list)
+
 define make-shlib-link
-@:
+echo $(<F) $@ >> $(symbolic-link-list)
 endef
 endif
 endif
 ifndef make-shlib-link
 define make-shlib-link
-$(make-link)
+rm -f $@
+$(LN_S) $(<F) $@
 endef
 endif