add cryptlib patch for gcc 10
This commit is contained in:
parent
a7b397a2cb
commit
965b30c4af
30
cryptlib/gccversion-3431.patch
Normal file
30
cryptlib/gccversion-3431.patch
Normal file
@ -0,0 +1,30 @@
|
||||
--- cryptlib-3.4.3.1/tools/ccopts.sh.orig 2022-12-30 17:40:57.093303975 +0100
|
||||
+++ cryptlib-3.4.3.1/tools/ccopts.sh 2022-12-30 17:41:51.230634217 +0100
|
||||
@@ -385,7 +385,17 @@
|
||||
# worked since at least 2.7.2 although it wasn't actually documented until
|
||||
# the first 3.x releases).
|
||||
|
||||
-GCC_VER="$(gcc -dumpversion | tr -d '.' | cut -c 1-2)"
|
||||
+GCC_VER="$($CC -dumpversion)"
|
||||
+case $GCC_VER in
|
||||
+ [0-9])
|
||||
+ GCC_VER="${GCC_VER}0" ;;
|
||||
+
|
||||
+ [0-9][0-9]*)
|
||||
+ GCC_VER="$(echo $GCC_VER | tr -d '.' | cut -c 1-3)" ;;
|
||||
+
|
||||
+ *)
|
||||
+ GCC_VER="$(echo $GCC_VER | tr -d '.' | cut -c 1-2)" ;;
|
||||
+esac
|
||||
|
||||
# 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
|
||||
@@ -471,7 +481,7 @@
|
||||
CCARGS="$CCARGS -march=pentium" ;;
|
||||
esac ;
|
||||
else
|
||||
- CCARGS="$CCARGS -mcpu=pentium" ;
|
||||
+ CCARGS="$CCARGS -march=native" ;
|
||||
fi ;
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user