summaryrefslogtreecommitdiff
path: root/ldso/libdl
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-21 15:26:56 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-21 15:26:56 +0000
commit8d3f61bd00ce138ddbeb27be7f4037ffd5366e83 (patch)
treea0700466a509bf36d7ac653f4bb163e8ff7585d5 /ldso/libdl
parent5f7659b83e3412e3f4a675e0b674428cab20043e (diff)
Do not create any files (dl-progname.h) in ldso anymore
Diffstat (limited to 'ldso/libdl')
-rw-r--r--ldso/libdl/Makefile.in4
-rw-r--r--ldso/libdl/libdl.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/ldso/libdl/Makefile.in b/ldso/libdl/Makefile.in
index 836e68607..56ddb0e1a 100644
--- a/ldso/libdl/Makefile.in
+++ b/ldso/libdl/Makefile.in
@@ -8,7 +8,7 @@
CFLAGS-libdl := -DNOT_IN_libc -DIS_IN_libdl $(SSP_ALL_CFLAGS)
-CFLAGS-libdl += -I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include -I$(top_builddir)ldso/ldso
+CFLAGS-libdl += -I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include -I$(top_srcdir)ldso/ldso
CFLAGS-libdl += -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\"
@@ -16,6 +16,8 @@ ifeq ($(SUPPORT_LD_DEBUG),y)
CFLAGS-libdl += -D__SUPPORT_LD_DEBUG__
endif
+CFLAGS-libdl.c := -DLDSO_ELFINTERP=\"$(TARGET_ARCH)/elfinterp.c\"
+
LDFLAGS-libdl.so := $(LDFLAGS) -fini dl_cleanup
LIBS-libdl.so := $(LIBS) $(top_builddir)lib/$(UCLIBC_LDSO)
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c
index 5efe36155..2a5674a6c 100644
--- a/ldso/libdl/libdl.c
+++ b/ldso/libdl/libdl.c
@@ -81,7 +81,7 @@ size_t _dl_pagesize = PAGE_SIZE; /* Store the page size for use later
struct r_debug *_dl_debug_addr = NULL;
#define _dl_malloc malloc
#include "../ldso/dl-debug.c"
-#include "dl-progname.h"
+#include LDSO_ELFINTERP
#include "../ldso/dl-hash.c"
#define _dl_trace_loaded_objects 0
#include "../ldso/dl-elf.c"