Ignore:
Timestamp:
Mar 10, 2019, 1:00:02 AM (6 weeks ago)
Author:
NiLuJe
Message:

Kindle Hacks:

  • X-TC:
    • Proper aligned_alloc workaround for elfutils (by using posix_memalign instead)
File:
1 edited

Legend:

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

    r15821 r15822  
    33943394# This essentially reverts https://sourceware.org/git/?p=elfutils.git;a=commit;h=5f9fab9efb042d803fcd2546f29613493f55d666
    33953395# re-introducing a broken behavior, but we can't actually use aligned_alloc on our targets, as it was introduced in glibc 2.16...
    3396 patch -p1 < ${SVN_ROOT}/Configs/trunk/Kindle/Misc/elfutils-0.176-no-aligned_alloc.patch
     3396# NOTE: FWIW, trying to use the GCC builtin didn't pan out... (sed -e 's/aligned_alloc/__builtin_aligned_alloc/' -i libelf/elf32_updatefile.c)
     3397#patch -p1 < ${SVN_ROOT}/Configs/trunk/Kindle/Misc/elfutils-0.176-no-aligned_alloc.patch
     3398# NOTE: What we can do, is patch in a shim that uses posix_memalign instead...
     3399patch -p1 < ${SVN_ROOT}/Configs/trunk/Kindle/Misc/elfutils-0.176-aligned_alloc-compat-shim.patch
    33973400#sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in
    3398 sed -i 's:-Werror::' */Makefile.in config/eu.am
     3401sed -i 's:-Werror::' configure.ac configure */Makefile.in config/eu.am
     3402# aligned_alloc was standardized in C11, and we know our compilers are recent enough to accept that (in fact, that's their default std value for C)
     3403sed -i 's:gnu99:gnu11:' configure.ac configure */Makefile.in config/eu.am
    33993404# Avoid PIC/TEXTREL issue w/ LTO... (NOTE: Not enough, symbol versioning issues or even weirder crap)
    34003405#for my_dir in libasm backends libelf libdw src ; do
Note: See TracChangeset for help on using the changeset viewer.