summaryrefslogtreecommitdiffstats
path: root/libdw/Makefile.am
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2005-07-28 07:12:38 +0000
committerRoland McGrath <[email protected]>2005-07-28 07:12:38 +0000
commit1838590b6a448e3e2d0cc3ea6a96c8d09d3f21a4 (patch)
treecb40974e2538ddcb620f1bc5bcdd9257adf17d3f /libdw/Makefile.am
parentd89bbe4e1e7502b2b8329185f8a60f9d0e82b824 (diff)
Merge libdwfl contents into libdw.so
Diffstat (limited to 'libdw/Makefile.am')
-rw-r--r--libdw/Makefile.am12
1 files changed, 7 insertions, 5 deletions
diff --git a/libdw/Makefile.am b/libdw/Makefile.am
index 17be31dd..92ca9418 100644
--- a/libdw/Makefile.am
+++ b/libdw/Makefile.am
@@ -71,11 +71,13 @@ libdw_pic_a_SOURCES =
am_libdw_pic_a_OBJECTS = $(libdw_a_SOURCES:.c=.os)
libdw_so_SOURCES =
-libdw.so: libdw_pic.a $(srcdir)/libdw.map
- $(CC) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
- -Wl,--version-script,$(srcdir)/libdw.map,--no-undefined \
- -Wl,--soname,$@.$(VERSION),-z,defs \
- ../libelf/libelf.so
+libdw.so: $(srcdir)/libdw.map libdw_pic.a \
+ ../libdwfl/libdwfl_pic.a ../libebl/libebl.a ../lib/libeu.a \
+ ../libelf/libelf.so
+ $(CC) -shared -o $@ -Wl,--soname,$@.$(VERSION),-z,defs \
+ -Wl,--version-script,$<,--no-undefined \
+ -Wl,--whole-archive $(filter-out $<,$^) -Wl,--no-whole-archive \
+ -ldl
if readelf -d $@ | fgrep -q TEXTREL; then exit 1; fi
ln -fs $@ $@.$(VERSION)