move more promptws to the scripts

This commit is contained in:
Mario Fetka
2024-04-20 11:07:14 +02:00
parent 44192ec2a7
commit 2aadf552c4
26 changed files with 85 additions and 83 deletions

View File

@@ -0,0 +1,12 @@
--- kernel/thread.orig 2022-06-01 11:44:29.563747178 -0400
+++ kernel/thread.h 2022-06-01 11:46:19.093752131 -0400
@@ -3005,7 +3005,8 @@
#endif /* Slowaris 5.7 / 7.x or newer */
#elif defined( _AIX ) || defined( __Android__ ) || defined( __CYGWIN__ ) || \
( defined( __hpux ) && ( OSVERSION >= 11 ) ) || \
- defined( __NetBSD__ ) || defined( __QNX__ ) || defined( __UCLIBC__ )
+ defined( __NetBSD__ ) || defined( __QNX__ ) || \
+ defined( __UCLIBC__ ) || defined(__linux__)
#define THREAD_YIELD() sched_yield()
#elif defined( __XMK__ )
/* The XMK underlying scheduling object is the process context, for which

View 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

View File

@@ -0,0 +1,47 @@
--- 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.
-GCC_VER="$($CC -dumpversion | tr -d '.' | cut -c 1-2)"
-if [ "$GCC_VER" -lt 10 ] ; then
- GCC_VER="${GCC_VER}0" ;
-fi
+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
@@ -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
- CCARGS="$CCARGS -mcpu=pentium" ;
+ CCARGS="$CCARGS -march=native" ;
fi ;
fi