.
OBS-URL: https://build.opensuse.org/package/show/shells/tcsh?expand=0&rev=32
This commit is contained in:
parent
fdcb383258
commit
9952523d9c
@ -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
|
||||
|
||||
|
32
tcsh.spec
32
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
|
||||
|
Loading…
Reference in New Issue
Block a user