Changeset 16697 in niluje


Ignore:
Timestamp:
Nov 18, 2019, 7:42:06 PM (3 weeks ago)
Author:
NiLuJe
Message:

Kindle Hacks:

  • X-TC:
    • Take the path of least resistance re: meson and sys_root and pkg-config
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Configs/trunk/Kindle/Misc/MesonCross.tpl

    r16646 r16697  
    1717strip = '%STRIP%'                       # $(command -v ${CROSS_TC}-strip)
    1818# NOTE: Because setting PKG_CONFIG_SYSROOT_DIR usually fucks everything up, work it around...
    19 #       c.f., the NOTE on sys_root below...
     19#       c.f., the NOTEs on sys_root below...
    2020#       Of course, we can't pass options to pkgconfig here, so we have to use a shell wrapper...
    21 pkgconfig = '%PKGCONFIG%'               # Other than that, we don't need a cross pkg-config, just to swap the search paths
     21#pkgconfig = '%PKGCONFIG%'              # Other than that, we don't need a cross pkg-config, just to swap the search paths
     22# NOTE: But, since we're now avoiding the whole PKG_CONFIG_SYSROOT_DIR mess, just use our native pkg-config,
     23#       we're already asking it to only look for cross .pc files via PKG_CONFIG_LIBDIR,
     24#       and said cross .pc files already feed us prefixed paths.
     25pkgconfig = '/usr/bin/pkg-config'
    2226#exe_wrapper = 'qemu-arm-static'        # The whole point was not having to use qemu, so, no, thanks.
    2327
     
    4549#sys_root = '%SYSROOT%'                 # ${HOME}/x-tools/${CROSS_TC}/${CROSS_TC}/sysroot
    4650# NOTE: Except this is used to set PKG_CONFIG_SYSROOT_DIR since meson 0.52, so we actually want to use %PREFIX% here...
    47 #       This also happens to usually be extremely harmful, so we already work around it in pkg-config...
    48 sys_root = '%PREFIX%'                   # c.f., below
     51#       This also happens to usually be extremely harmful, so we work around it in a pkg-config wrapper...
     52# NOTE: The good news is, this is apparently not used anywhere except to fuck pkg-config up.
     53#       You'd think this would be used to pass --sysroot to the compiler, but, apparently, no.
     54#       So, just don't set it, it makes our lives markedly easier.
     55#sys_root = '%PREFIX%'                  # c.f., below
    4956
    5057# Where we'll stuff custom properties if need be
Note: See TracChangeset for help on using the changeset viewer.