This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem Building Elfutils (patched) Required by systemtap


That's a bug in the elfutils build that crops up when you don't have any
other elfutils-libelf-devel installed on the system.  This patch should fix it.


Thanks,
Roland


============================================================
--- src/Makefile.am	06ef04bf12b001c9f3de32573106bdcc4dfe9e55
+++ src/Makefile.am	5728692baa7ffc9a42fda2b58ec70f98e2eb979f
@@ -1,6 +1,6 @@
 ## Process this file with automake to create Makefile.in
 ##
-## Copyright (C) 1996-2002, 2003, 2004, 2005 Red Hat, Inc.
+## Copyright (C) 1996-2002, 2003, 2004, 2005, 2006 Red Hat, Inc.
 ##
 ## This program is Open Source software; you can redistribute it and/or
 ## modify it under the terms of the Open Software License version 1.0 as
@@ -28,6 +28,8 @@
 	   -I$(srcdir)/../libdw -I$(srcdir)/../libdwfl \
 	   -I$(srcdir)/../lib -I..
 
+AM_LDFLAGS = -Wl,-rpath-link,../libelf:../libdw
+
 YACC = @YACC@ -d
 AM_YFLAGS = -pld
 AM_LFLAGS = -Pld -olex.yy.c
============================================================
--- tests/Makefile.am	a3ced4165ea5152b4f9266ec6948a4b05ad2c699
+++ tests/Makefile.am	dc33c353cee1d3e14a6227b399ea9c27bd2d1e22
@@ -23,15 +23,18 @@
 BUILT_RPATH = \$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../backends:\$$ORIGIN/../libelf
 endif
 
+AM_LDFLAGS =
+
 if !STANDALONE
 INCLUDES = -I$(top_srcdir)/libasm -I$(top_srcdir)/libdw \
 	   -I$(top_srcdir)/libdwfl \
 	   -I$(top_srcdir)/libebl -I$(top_srcdir)/libelf \
 	   -I$(top_srcdir)/lib -I..
+AM_LDFLAGS += -Wl,-rpath-link,../libasm:../libdw:../libelf
 endif !STANDALONE
 
 if TESTS_RPATH
-AM_LDFLAGS = -Wl,-rpath,$(BUILT_RPATH)
+AM_LDFLAGS += -Wl,-rpath,$(BUILT_RPATH)
 tests_rpath = yes
 else
 tests_rpath = no


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]