From 9952523d9cd204a1c688d7adc098d933afd08ad2c8656cf9cdc0200b1b142187 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Fri, 18 Nov 2011 13:37:49 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/shells/tcsh?expand=0&rev=32 --- tcsh.changes | 5 +++++ tcsh.spec | 32 +++++++++++++++++++++++++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/tcsh.changes b/tcsh.changes index b6174c5..4c4c817 100644 --- a/tcsh.changes +++ b/tcsh.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 18 13:26:08 UTC 2011 - werner@suse.de + +- Increase size of hash table for runtime linker a lot + ------------------------------------------------------------------- Thu Nov 17 08:44:05 UTC 2011 - werner@suse.de diff --git a/tcsh.spec b/tcsh.spec index aa1be9c..1fa9b8d 100644 --- a/tcsh.spec +++ b/tcsh.spec @@ -79,9 +79,39 @@ Provides translations to the package tcsh %patch -b .0 %build + cflags () + { + local flag=$1; shift + local var=$1; shift + test -n "${flag}" -a -n "${var}" || return + case "${!var}" in + *${flag}*) return + esac + set -o noclobber + case "$flag" in + -Wl,*) + if echo 'int main () { return 0; }' | \ + ${CC:-gcc} -Werror $flag -o /dev/null -xc - > /dev/null 2>&1 ; then + eval $var=\${$var:+\$$var\ }$flag + fi + ;; + *) + if ${CC:-gcc} -Werror $flag -S -o /dev/null -xc /dev/null > /dev/null 2>&1 ; then + eval $var=\${$var:+\$$var\ }$flag + fi + if ${CXX:-g++} -Werror $flag -S -o /dev/null -xc++ /dev/null > /dev/null 2>&1 ; then + eval $var=\${$var:+\$$var\ }$flag + fi + esac + set +o noclobber + } CC=gcc CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -DBUFSIZE=8192 -pipe" - export CC CFLAGS + cflags -ftree-loop-linear CFLAGS + cflags -Wl,-O2 LDFLAGS + cflags -Wl,--as-needed LDFLAGS + cflags -Wl,--hash-size=16699 LDFLAGS + export CC CFLAGS LDFLAGS %ifarch %ix86 CPU=i586 %else