From b7165f651cf81233d8102e6036279483ab3298f4 Mon Sep 17 00:00:00 2001 From: roland Date: Thu, 22 Dec 2005 23:05:20 +0000 Subject: 2005-12-22 Roland McGrath * configure.ac: Pass LDFLAGS to elfutils configure to force DT_RUNPATH. * configure: Regeneraed. --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index bf455795..cfad5c57 100644 --- a/configure.ac +++ b/configure.ac @@ -62,10 +62,14 @@ if test $build_elfutils = yes; then *) elfutils_srcdir="../$with_elfutils" ;; esac AC_MSG_NOTICE([running ${elfutils_srcdir}/configure]) + # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that + # $ORIGIN is where libdw.so resides, which is not where there is a ../lib. + elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}" here=`pwd` (mkdir -p build-elfutils && cd build-elfutils && ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \ --includedir="${here}/include-elfutils" \ - --libdir="${here}/lib-elfutils" + --libdir="${here}/lib-elfutils" \ + LDFLAGS="$LDFLAGS $elfutils_rpath" ) fi -- cgit