diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-09-30 21:30:57 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-09-30 21:30:57 +0000 |
commit | d5b26eae203eb12832b378149dd09c849c0be4bc (patch) | |
tree | 5fdb4d6d11ec9b3e6d26cd900557d42fde44433a /utils/Makefile | |
parent | 948d4fc01692997f98184b232e89fdcce1b1e24d (diff) |
Allow ldconfig.host to build ld.so.cache for target, regardless of
the target system's byteorder
Diffstat (limited to 'utils/Makefile')
-rw-r--r-- | utils/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/utils/Makefile b/utils/Makefile index 640bedfb7..f35b94eac 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -31,6 +31,12 @@ else TARGET_ICONV = endif +ifeq ($(strip $(LDSO_CACHE_SUPPORT)),y) +HOST_LDSO_CACHE_FLAG = -D__LDSO_CACHE_SUPPORT__=1 +else +HOST_LDSO_CACHE_FLAG = +endif + # NOTE: We build the utils AFTER we have a uClibc-targeted toolchain. ifeq ($(strip $(HAVE_SHARED)),y) @@ -84,13 +90,13 @@ endif ldd.host: ldd.c $(HOSTCC) $(HOSTCFLAGS) -Wl,-s \ - -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \ + -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" $(HOST_LDSO_CACHE_FLAG) \ -DUCLIBC_LDSO=$(UCLIBC_LDSO) -I. -I../ldso/include \ $^ -o $@ -ldconfig.host: ldconfig.c +ldconfig.host: ldconfig.c chroot_realpath.c $(HOSTCC) $(HOSTCFLAGS) -Wl,-s \ - -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \ + -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" $(HOST_LDSO_CACHE_FLAG) \ -DUCLIBC_LDSO=$(UCLIBC_LDSO) -I. -I../ldso/include \ $^ -o $@ |