(install-clean-symbolic-link-list): Make phony.
authordrepper <drepper>
Thu, 13 Aug 1998 19:40:02 +0000 (19:40 +0000)
committerdrepper <drepper>
Thu, 13 Aug 1998 19:40:02 +0000 (19:40 +0000)
(symbolic-link-prog, symbolic-link-list): New macros.
(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 e8930e3..d8fe977 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -649,17 +649,25 @@ 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
+.PHONY: 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