diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-07-05 07:34:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-07-05 07:34:27 +0000 |
commit | 4ba68f475d305b11e55c83994bad4824dad156d3 (patch) | |
tree | 80193be4e20320e129fcef4859685132c23e6b1a /src/Makefile.am | |
parent | d5a7519085f35bf48c9b33b8698835b24caa2da1 (diff) | |
download | elfutils-4ba68f475d305b11e55c83994bad4824dad156d3.tar.gz |
Linker work.
GNU hash support.
64-bit SysV hash support.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 49e01740..604483ab 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -63,6 +63,12 @@ else noinst_LIBRARIES = libld_elf.a $(ld_dsos) noinst_PROGRAMS = $(ld_dsos:_pic.a=.so) endif +if NEVER +# We never build this library but we need to get the dependency files +# of all the linker backends that might be used in a non-generic linker. +noinst_LIBRARIES += libdummy.a +libdummy_a_SOURCES = i386_ld.c +endif textrel_check = if readelf -d $@ | fgrep -q TEXTREL; then exit 1; fi @@ -102,6 +108,7 @@ size_LDADD = $(libelf) $(libeu) $(libmudflap) strip_LDADD = $(libebl) $(libelf) $(libeu) $(libmudflap) -ldl ld_LDADD = $(libebl) $(libelf) $(libeu) $(libmudflap) -ldl if NATIVE_LD +# -ldl is always needed for libebl. ld_LDADD += libld_elf.a endif ld_LDFLAGS = -rdynamic @@ -117,9 +124,10 @@ ldlex.o: ldscript.c ldlex_no_Werror = yes ldscript.h: ldscript.c +if NATIVE_LD # Machine-specific linker code. -libld_elf_a_SOURCES = $(base_cpu)_ld.c - +libld_elf_a_SOURCES := $(base_cpu)_ld.c +else libld_elf_i386_pic_a_SOURCES = am_libld_elf_i386_pic_a_OBJECTS = i386_ld.os @@ -129,6 +137,7 @@ libld_elf_i386.so: libld_elf_i386_pic.a libld_elf_i386.map $(libelf) $(libeu) \ -Wl,--version-script,$(srcdir)/libld_elf_i386.map $(textrel_check) +endif %.os: %.c %.o |