Changeset 17676 in niluje


Ignore:
Timestamp:
Aug 2, 2020, 2:13:20 AM (10 days ago)
Author:
NiLuJe
Message:

Kindle Hacks:

  • X-TC:
    • More zlib-ng tweaks: Fix the CHOST canonicalization script instead of skipping it.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Configs/trunk/Kindle/Misc/zlib-ng-trust-CHOST.patch

    r17664 r17676  
    1 diff --git a/configure b/configure
    2 index ee7fbf8..1e57ce8 100755
    3 --- a/configure
    4 +++ b/configure
    5 @@ -24,7 +24,7 @@ BUILDDIR=$(pwd)
    6  # set command prefix for cross-compilation
    7  if [ -n "${CHOST}" ]; then
    8      # normalize the chost before parsing it
    9 -    NORM_CHOST=$(sh "$SRCDIR"/tools/config.sub $CHOST)
    10 +    NORM_CHOST=$CHOST
    11      uname="$(echo "${NORM_CHOST}" | sed -e 's/^[^-]*-\([^-]*\)$/\1/' -e 's/^[^-]*-[^-]*-\([^-]*\)$/\1/' -e 's/^[^-]*-[^-]*-\([^-]*\)-.*$/\1/')"
    12      CROSS_PREFIX="${CHOST}-"
    13      ARCH="$(echo "${NORM_CHOST}" | sed -e 's/-.*//')"
     1diff --git a/tools/config.sub b/tools/config.sub
     2index 3d50a16..dba175a 100755
     3--- a/tools/config.sub
     4+++ b/tools/config.sub
     5@@ -10,8 +10,8 @@
     6 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
     7 
     8 case "$1" in
     9-*-*-linux-gnu) echo $1;;
     10-i686-linux-gnu|x86_64-linux-gnu*) echo $1 | sed 's/-linux-gnu/-pc-linux-gnu/';;
     11+*-*-linux-gnu*) echo $1;;
     12+i686-linux-gnu*|x86_64-linux-gnu*) echo $1 | sed 's/-linux-gnu/-pc-linux-gnu/';;
     13 *-linux-gnu*) echo $1 | sed 's/-linux-gnu/-unknown-linux-gnu/';;
     14 *) echo $1;;
     15 esac
Note: See TracChangeset for help on using the changeset viewer.