diff options
author | Ulrich Drepper <[email protected]> | 2008-01-09 05:49:49 +0000 |
---|---|---|
committer | Ulrich Drepper <[email protected]> | 2008-01-09 05:49:49 +0000 |
commit | e219f1c1b2a5a2e4f248714fdc93d031cdc5ee6a (patch) | |
tree | fa6765a61fa75066ddc0dd271135025748a7faf6 /libdw/Makefile.am | |
parent | 9fbf0d9bdcc9043491e7ea53e769506743160760 (diff) |
propagate from branch 'com.redhat.elfutils.roland.pending' (head 26cc2ce45739af072e7ff4fdab5e8eb7cd756d50)
to branch 'com.redhat.elfutils' (head bb519012dee7013b2cab5c2f5ed465cb3821b063)
Diffstat (limited to 'libdw/Makefile.am')
-rw-r--r-- | libdw/Makefile.am | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libdw/Makefile.am b/libdw/Makefile.am index 62057dc9..69ce526c 100644 --- a/libdw/Makefile.am +++ b/libdw/Makefile.am @@ -1,6 +1,6 @@ ## Process this file with automake to create Makefile.in ## -## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Red Hat, Inc. +## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Red Hat, Inc. ## This file is part of Red Hat elfutils. ## ## Red Hat elfutils is free software; you can redistribute it and/or modify @@ -47,8 +47,7 @@ noinst_PROGRAMS = $(noinst_LIBRARIES:_pic.a=.so) endif include_HEADERS = dwarf.h -euincludedir = ${includedir}/elfutils -euinclude_HEADERS = libdw.h +pkginclude_HEADERS = libdw.h libdw_a_SOURCES = dwarf_begin.c dwarf_begin_elf.c dwarf_end.c dwarf_getelf.c \ dwarf_getpubnames.c dwarf_getabbrev.c dwarf_tag.c \ @@ -94,7 +93,10 @@ libdw_so_SOURCES = libdw.so: $(srcdir)/libdw.map libdw_pic.a \ ../libdwfl/libdwfl_pic.a ../libebl/libebl.a \ ../libelf/libelf.so +# The rpath is necessary for libebl because its $ORIGIN use will +# not fly in a setuid executable that links in libdw. $(LINK) -shared -o $@ -Wl,--soname,$@.$(VERSION),-z,defs \ + -Wl,--enable-new-dtags,-rpath,$(pkglibdir) \ -Wl,--version-script,$<,--no-undefined \ -Wl,--whole-archive $(filter-out $<,$^) -Wl,--no-whole-archive\ -ldl |