SHA256
1
0
forked from pool/tcsh
Dr. Werner Fink 2011-11-18 13:37:49 +00:00 committed by Git OBS Bridge
parent fdcb383258
commit 9952523d9c
2 changed files with 36 additions and 1 deletions

View File

@ -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 Thu Nov 17 08:44:05 UTC 2011 - werner@suse.de

View File

@ -79,9 +79,39 @@ Provides translations to the package tcsh
%patch -b .0 %patch -b .0
%build %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 CC=gcc
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -DBUFSIZE=8192 -pipe" 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 %ifarch %ix86
CPU=i586 CPU=i586
%else %else