Skip to content

Commit

Permalink
Merge pull request #6908 from cms-sw/fix-libunwind-for-yet-another-time
Browse files Browse the repository at this point in the history
Patch the configure.ac of libunwind
  • Loading branch information
mrodozov committed May 15, 2021
2 parents 6d81e28 + 4ebd09e commit 634b4af
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 13 additions & 0 deletions libunwind-fix-comma.patch
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,16 @@ index edb0bbd..c902ccd 100644
table entries are considered
relative to di->start_ip, rather
than di->segbase */
diff --git a/configure.ac b/configure.ac
index c8d68f7..6f7e9dc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -207,7 +207,7 @@ AM_CONDITIONAL(USE_DWARF, [test x$use_dwarf = xyes])
AC_MSG_RESULT([$use_dwarf])

if test x$target_arch = xppc64; then
- libdir='${exec_prefix}/lib64'
+ libdir='${exec_prefix}/lib'
AC_MSG_NOTICE([PowerPC64 detected, lib will be installed ${libdir}]);
AC_SUBST([libdir])
fi
3 changes: 1 addition & 2 deletions libunwind.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ Patch0: libunwind-fix-comma

%build
autoreconf -fiv
./configure CFLAGS="-g -O3 -fcommon" --prefix=%{i} --libdir=%{i}/lib --disable-block-signals --enable-zlibdebuginfo
./configure CFLAGS="-g -O3 -fcommon" --prefix=%{i} --disable-block-signals --enable-zlibdebuginfo
make %{makeprocesses}

%install
make %{makeprocesses} install
[ -d %{i}/lib64 ] && mv %i/lib64 %i/lib

%define drop_files %{i}/share/man %{i}/lib/pkgconfig %{i}/lib/*.a

0 comments on commit 634b4af

Please sign in to comment.