From 32d9ceffd68e20a4601005291c282c34c4d8afb71ea1d8c642253a86d1377fbf Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 30 Mar 2017 11:17:57 +0000 Subject: [PATCH] - Remove empty rpath component removal optimization from binutils-skip-rpaths.patch to workaround CMake rpath handling. [boo#1025282] OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=236 --- binutils-skip-rpaths.patch | 15 ++++++--------- binutils.changes | 7 +++++++ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/binutils-skip-rpaths.patch b/binutils-skip-rpaths.patch index e7d6290..3ed3367 100644 --- a/binutils-skip-rpaths.patch +++ b/binutils-skip-rpaths.patch @@ -1,16 +1,13 @@ Index: ld/emultempl/elf32.em =================================================================== ---- ld/emultempl/elf32.em.orig 2014-10-14 17:18:40.000000000 +0200 -+++ ld/emultempl/elf32.em 2014-10-14 17:20:23.000000000 +0200 -@@ -1357,8 +1357,38 @@ if test x"$LDEMUL_BEFORE_ALLOCATION" != +--- ld/emultempl/elf32.em.orig 2017-03-02 09:23:54.000000000 +0100 ++++ ld/emultempl/elf32.em 2017-03-30 13:06:06.406399958 +0200 +@@ -1581,8 +1581,35 @@ if test x"$LDEMUL_BEFORE_ALLOCATION" != else ELF_INTERPRETER_SET_DEFAULT= fi + -+ libpath_nl= -+ for path in $NATIVE_LIB_DIRS; do -+ libpath_nl="$libpath_nl\n$path" -+ done ++ libpath_nl=`echo ${NATIVE_LIB_DIRS// /\\\n}` fragment <