瀏覽代碼

depends: fix fontconfig with newer glibc

See comment for more detail
tags/v0.15.1
Cory Fields 3 年之前
父節點
當前提交
3498a8d018
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      depends/packages/fontconfig.mk

+ 6
- 0
depends/packages/fontconfig.mk 查看文件

@@ -13,7 +13,13 @@ define $(package)_config_cmds
$($(package)_autoconf)
endef

# 2.12.1 uses CHAR_WIDTH which is reserved and clashes with some glibc versions, but newer versions of fontconfig
# have broken makefiles which needlessly attempt to re-generate headers with gperf.
# Instead, change all uses of CHAR_WIDTH, and disable the rule that forces header re-generation.
# This can be removed once the upstream build is fixed.
define $(package)_build_cmds
sed -i 's/CHAR_WIDTH/CHARWIDTH/g' fontconfig/fontconfig.h src/fcobjshash.gperf src/fcobjs.h src/fcobjshash.h && \
sed -i 's/fcobjshash.h: fcobjshash.gperf/fcobjshash.h:/' src/Makefile && \
$(MAKE)
endef


Loading…
取消
儲存