summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-10-18 10:51:06 +0000
committerEric Andersen <andersen@codepoet.org>2003-10-18 10:51:06 +0000
commitff23ecf6698ed48d18a612aadf1fbae64a47b207 (patch)
tree8f13b2280bd747935544e270907ec25002901341 /ldso
parentdd3fb0f8c1c10fcee804f11a4eed84316c5f694b (diff)
Peter Kjellerstedt writes:
ln.patch: * Define $(LN) as ln in Rules.mak. * Change all occurrences of ln into $(LN). * Change all constructs like (cd path && ln -sf foo/file file) into $(LN) -sf foo/file path/file. The latter construct is already used in a number of places so it should not be an additional compatibility problem.
Diffstat (limited to 'ldso')
-rw-r--r--ldso/Makefile8
-rw-r--r--ldso/ldso/Makefile2
-rw-r--r--ldso/libdl/Makefile4
-rw-r--r--ldso/util/Makefile2
4 files changed, 8 insertions, 8 deletions
diff --git a/ldso/Makefile b/ldso/Makefile
index 44a4456ca..d4e16ec91 100644
--- a/ldso/Makefile
+++ b/ldso/Makefile
@@ -44,10 +44,10 @@ utils:
$(MAKE) -C util;
headers:
- ln -fs $(TOPDIR)../include/elf.h include/
- ln -fs ../ldso/$(TARGET_ARCH)/boot1_arch.h include/
- ln -fs ../ldso/$(TARGET_ARCH)/ld_syscalls.h include/
- ln -fs ../ldso/$(TARGET_ARCH)/ld_sysdep.h include/
+ $(LN) -fs $(TOPDIR)../include/elf.h include/
+ $(LN) -fs ../ldso/$(TARGET_ARCH)/boot1_arch.h include/
+ $(LN) -fs ../ldso/$(TARGET_ARCH)/ld_syscalls.h include/
+ $(LN) -fs ../ldso/$(TARGET_ARCH)/ld_sysdep.h include/
clean:
set -e ; for d in $(ALL_SUBDIRS) ; do $(MAKE) -C $$d $@ ; done
diff --git a/ldso/ldso/Makefile b/ldso/ldso/Makefile
index 80dd8c020..2f0674d23 100644
--- a/ldso/ldso/Makefile
+++ b/ldso/ldso/Makefile
@@ -74,7 +74,7 @@ lib:: _dl_progname.h $(OBJS) $(DLINK_OBJS)
-o $(LDSO_FULLNAME) $(OBJS) $(LIBGCC);
$(INSTALL) -d $(TOPDIR)lib
$(INSTALL) -m 755 $(LDSO_FULLNAME) $(TOPDIR)lib
- (cd $(TOPDIR)lib && ln -sf $(LDSO_FULLNAME) $(UCLIBC_LDSO))
+ $(LN) -sf $(LDSO_FULLNAME) $(TOPDIR)lib/$(UCLIBC_LDSO)
_dl_progname.h: Makefile
echo "const char *_dl_progname=\""$(UCLIBC_LDSO)"\";" > _dl_progname.h
diff --git a/ldso/libdl/Makefile b/ldso/libdl/Makefile
index 3152b3162..009072131 100644
--- a/ldso/libdl/Makefile
+++ b/ldso/libdl/Makefile
@@ -83,8 +83,8 @@ shared:
$(INSTALL) -d $(TOPDIR)lib
$(RM) $(TOPDIR)lib/$(LIBDL_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBDL_SHARED).$(MAJOR_VERSION)
$(INSTALL) -m 644 $(LIBDL_SHARED_FULLNAME) $(TOPDIR)lib
- (cd $(TOPDIR)lib && ln -sf $(LIBDL_SHARED_FULLNAME) $(LIBDL_SHARED));
- (cd $(TOPDIR)lib && ln -sf $(LIBDL_SHARED_FULLNAME) $(LIBDL_SHARED).$(MAJOR_VERSION));
+ $(LN) -sf $(LIBDL_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBDL_SHARED)
+ $(LN) -sf $(LIBDL_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBDL_SHARED).$(MAJOR_VERSION)
clean:
$(RM) .depend $(LIBDL_SHARED)* $(LIBDL_SHARED_FULLNAME) core *.o *.a *.s *.i tmp_make foo *~
diff --git a/ldso/util/Makefile b/ldso/util/Makefile
index 06de2df7e..9064c367b 100644
--- a/ldso/util/Makefile
+++ b/ldso/util/Makefile
@@ -39,7 +39,7 @@ endif
all: $(TARGETS)
headers:
- ln -fs $(TOPDIR)include/elf.h
+ $(LN) -fs $(TOPDIR)include/elf.h
readelf: readelf.c
$(HOSTCC) $(HOSTCFLAGS) -I. -I../include $^ -o $@