add ctyptlib 3.4.5 gcc patch

This commit is contained in:
Mario Fetka 2023-01-15 12:22:33 +01:00
parent d9c7e0dc04
commit 1554196958

View File

@ -1,5 +1,5 @@
--- cl-original/tools/ccopts.sh 2019-11-23 17:03:39.315504598 +0100
+++ cl-testpatch/tools/ccopts.sh 2020-01-22 18:49:01.093189548 +0100
--- cryptlib-3.4.5/tools/ccopts.sh.orig 2023-01-15 12:18:32.449673775 +0100
+++ cryptlib-3.4.5/tools/ccopts.sh 2023-01-15 12:20:07.109441725 +0100
@@ -508,10 +508,17 @@
# apparent version less than 10 we add a trailing zero to the string to make
# the checks that follow work.
@ -22,7 +22,21 @@
# Try and determine the CPU type. This is made more complex by a pile of
# *BSE's which, along with antideluvian tools like an as that doesn't
@@ -606,7 +613,7 @@
@@ -589,12 +596,7 @@
# ASLR where it's supported.
if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ] || [ "$ARCH" = "x86_64" ] ; then
- if [ "$GCC_VER" -ge 45 ] ; then
- CCARGS="$CCARGS -march=native -mtune=generic" ;
- if [ "$ARCH" = "x86_64" ] ; then
- CCARGS="$CCARGS -fPIC" ;
- fi ;
- elif [ "$GCC_VER" -ge 30 ] ; then
+ if [ "$GCC_VER" -ge 30 ] ; then
case $ARCH in
'x86_64')
CCARGS="$CCARGS -march=opteron -fPIC" ;;
@@ -606,7 +608,7 @@
CCARGS="$CCARGS -march=pentium" ;;
esac ;
else