From f4686f5e13d8ab60defcaebaaf0b97aadc6fa94d Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 16 May 2019 07:55:19 +0000 Subject: [PATCH] Temporary change to build bash 5.0 static linked for SLES-15 OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=294 --- bash.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bash.spec b/bash.spec index f6a7cd69..b98ca76c 100644 --- a/bash.spec +++ b/bash.spec @@ -304,6 +304,11 @@ test ${rl1[2]} = ${rl2[2]} || exit 1 LARGEFILE="$(getconf LFS_CFLAGS)" CFLAGS="$RPM_OPT_FLAGS $LARGEFILE -D_GNU_SOURCE -DRECYCLES_PIDS -Wall -g" LDFLAGS="" +%if 0%{?sle_version} > 0 +%if 0%{?suse_version} == 1500 + LDFLAGS="-Wl,-Bstatic -lreadline -Wl,-Bdynamic" +%endif +%endif # # Never ever put -DMUST_UNBLOCK_CHLD herein as this breaks bash # @@ -352,11 +357,6 @@ test ${rl1[2]} = ${rl2[2]} || exit 1 # READLINE=" --with-installed-readline -%if 0%{?sle_version} > 0 -%if 0%{?suse_version} == 1500 - --enable-static-link -%endif -%endif " bash support/mkconffiles -v %if %_minsh