Changeset 15591 in niluje


Ignore:
Timestamp:
Dec 11, 2018, 4:06:34 AM (5 months ago)
Author:
NiLuJe
Message:

Kindle Hacks:

  • X-TC:
    • Build the full KindleTool? stack with aggressive optimizations
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Configs/trunk/Kindle/Misc/x-compile.sh

    r15590 r15591  
    20462046cd libarchive
    20472047update_title_info
     2048export CFLAGS="${RICE_CFLAGS}"
    20482049# Kill -Werror, git master doesn't always build with it...
    20492050sed -e 's/-Werror //' -i ./Makefile.am
     
    20552056make ${JOBSFLAGS} V=1
    20562057make install
     2058export CFLAGS="${BASE_CFLAGS}"
    20572059export LDFLAGS="${BASE_LDFLAGS}"
    20582060unset ac_cv_header_ext2fs_ext2_fs_h
     
    20652067cd gmp-6.1.2
    20662068update_title_info
     2069export CFLAGS="${RICE_CFLAGS}"
    20672070patch -p1 < /usr/portage/dev-libs/gmp/files/gmp-6.1.0-noexecstack-detect.patch
    20682071autoreconf -fi
     
    20772080make ${JOBSFLAGS}
    20782081make install
     2082export CFLAGS="${BASE_CFLAGS}"
    20792083
    20802084## Nettle (kindletool dep)
     
    20852089        tar -I pigz -xvf /usr/portage/distfiles/nettle-3.4.1.tar.gz
    20862090        cd nettle-3.4.1
     2091        update_title_info
     2092        export CFLAGS="${RICE_CFLAGS}"
    20872093        sed -e '/CFLAGS=/s: -ggdb3::' -e 's/solaris\*)/sunldsolaris*)/' -i configure.ac
    20882094        sed -i '/SUBDIRS/s/testsuite examples//' Makefile.in
     
    20992105        make ${JOBSFLAGS}
    21002106        make install
     2107        export CFLAGS="${BASE_CFLAGS}"
    21012108else
    21022109        # Build from git to benefit from the more x86_64 friendly API changes
     
    21082115        cd nettle-git
    21092116        update_title_info
     2117        export CFLAGS="${RICE_CFLAGS}"
    21102118        sed -e '/CFLAGS=/s: -ggdb3::' -e 's/solaris\*)/sunldsolaris*)/' -i configure.ac
    21112119        sed -i '/SUBDIRS/s/testsuite examples//' Makefile.in
     
    21222130        make ${JOBSFLAGS}
    21232131        make install
     2132        export CFLAGS="${BASE_CFLAGS}"
    21242133fi
    21252134
     
    21372146update_title_info
    21382147export KT_NO_USERATHOST_TAG="true"
    2139 export CFLAGS="${BASE_CFLAGS} -DKT_USERATHOST='\"niluje@tyrande\"'"
     2148export CFLAGS="${RICE_CFLAGS} -DKT_USERATHOST='\"niluje@tyrande\"'"
    21402149# Setup an RPATH for OpenSSL on the K5....
    21412150# Keep it K5 only, because on the K3, so far we haven't had any issues with KindleTool, and we use it in the JailBreak, too, so an rpath isn't the way to go
Note: See TracChangeset for help on using the changeset viewer.