]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Clean up build hacks for libdw C++ code, still kludged but less so.
authorRoland McGrath <roland@redhat.com>
Tue, 24 Mar 2009 20:12:47 +0000 (13:12 -0700)
committerRoland McGrath <roland@redhat.com>
Tue, 24 Mar 2009 20:12:47 +0000 (13:12 -0700)
libdw/ChangeLog
libdw/Makefile.am
libdw/c++/edit-values.cc
src/ChangeLog
src/Makefile.am

index fc0817645512466cb2d811d838693f3dc38f6d1b..f9320db6ca23bcf71593e0795239961929c7e67a 100644 (file)
@@ -1,3 +1,8 @@
+2009-03-24  Roland McGrath  <roland@redhat.com>
+
+       * Makefile.am (libdwpp_a_SOURCES): New variable.
+       (lib_LIBRARIES): Add libdwpp.a to it.
+
 2009-02-26  Roland McGrath  <roland@redhat.com>
 
        * c++/dwarf (dwarf::attr_value): Add _m_tag private member.
index 3f5032dc6d99c5cbd0738cfb268e5bed97d33ef3..9a2cff63c3ee4ef97ec992c7aafdb20f9edb2806 100644 (file)
@@ -87,6 +87,13 @@ libdw_a_SOURCES = dwarf_begin.c dwarf_begin_elf.c dwarf_end.c dwarf_getelf.c \
                  libdw_visit_scopes.c \
                  dwarf_entry_breakpoints.c
 
+# XXX need to figure out C++ dso crapola
+lib_LIBRARIES += libdwpp.a
+libdwpp_a_SOURCES = c++/values.cc \
+                   c++/known.cc \
+                   c++/line_info.cc \
+                   c++/edit-values.cc
+
 if MAINTAINER_MODE
 BUILT_SOURCES = $(srcdir)/known-dwarf.h
 MAINTAINERCLEANFILES = $(srcdir)/known-dwarf.h
index c579c6764aaccd0a60fcd93d526d1b98a30dcd26..85da4ca8ea20dc4bba5ef29de3b8d954f746b995 100644 (file)
@@ -50,6 +50,8 @@
 #include <config.h>
 #include "dwarf_edit"
 
+#include <typeinfo>
+
 using namespace elfutils;
 
 
index 4e0f52bffcb40a27660dc3d200b49552dea50209..cfe9e5f0ab1bc1b576946e1fd0a5b37f941c32ba 100644 (file)
@@ -1,3 +1,10 @@
+2009-03-24  Roland McGrath  <roland@redhat.com>
+
+       * Makefile.am (libdwplusplus_SOURCES): Variable removed.
+       (dwarfcmp_SOURCES, dwarflint_SOURCES): Don't use it.
+       (libdwpp): New variable.
+       (dwarfcmp_LDADD, dwarflint_LDADD): Use it.
+
 2009-03-05  Petr Machata  <pmachata@redhat.com>
 
        * dwarflint.c: Add --nohl command line switch.
index 33cbf098a08f5cba8b2b669f5871fcf65c91a222..934037aa1d5c81fedc20a8e5e4bf24389db6d1ce 100644 (file)
@@ -81,16 +81,10 @@ ld_SOURCES = ld.c ldgeneric.c ldlex.l ldscript.y symbolhash.c sectionhash.c \
 
 libar_a_SOURCES = arlib.c arlib2.c
 
-# XXX need to figure out C++ dso crapola
-libdwplusplus_SOURCES = ../libdw/c++/values.cc ../libdw/c++/known.cc \
-                       ../libdw/c++/line_info.cc \
-                       ../libdw/c++/edit-values.cc
-
 dwarfcmp_SOURCES = dwarfcmp.cc
-dwarfcmp_SOURCES += $(libdwplusplus_SOURCES)
 
-dwarflint_SOURCES = dwarflint.c dwarflint-hl.cc dwarflint-expected-at.cc dwarfstrings.c
-dwarflint_SOURCES += $(libdwplusplus_SOURCES) # XXX drop when we have the DSO
+dwarflint_SOURCES = dwarflint.c dwarflint-hl.cc \
+                   dwarflint-expected-at.cc dwarfstrings.c
 
 readelf_SOURCES = readelf.c dwarfstrings.c
 
@@ -121,6 +115,9 @@ endif
 libebl = ../libebl/libebl.a
 libeu = ../lib/libeu.a
 
+# XXX later the C++ stuff will be in libdw.so directly
+libdwpp = ../libdw/libdwpp.a $(libdw)
+
 nm_no_Wformat = yes
 size_no_Wformat = yes
 strings_no_Wformat = yes
@@ -148,8 +145,8 @@ ranlib_LDADD = libar.a $(libelf) $(libeu) $(libmudflap)
 strings_LDADD = $(libelf) $(libeu) $(libmudflap)
 ar_LDADD = libar.a $(libelf) $(libeu) $(libmudflap)
 unstrip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(libmudflap) -ldl
-dwarfcmp_LDADD = $(libdw) $(libmudflap) -ldl
-dwarflint_LDADD  = $(libebl) $(libelf) $(libdw) $(libeu) $(libmudflap) -ldl
+dwarfcmp_LDADD = $(libdwpp) $(libmudflap) -ldl
+dwarflint_LDADD  = $(libebl) $(libelf) $(libdwpp) $(libeu) $(libmudflap) -ldl
 
 ldlex.o: ldscript.c
 ldlex_no_Werror = yes