Skip to content

Commit 145d838

Browse files
committedMay 13, 2024
modify the harfbuz build flags, add temporary config for v8
1 parent 862b831 commit 145d838

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed
 

‎bharfbuz

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
###### termcap + readline vybuildit co nejdrive
2+
termcap-1.3.1
3+
readline-8.2
4+
5+
6+
###### compress libs
7+
bzip2-1.0.8
8+
zlib-1.3.1
9+
10+
###### misc simple
11+
libiconv-1.17
12+
expat-2.6.2
13+
14+
#HACK: rebuilding freetype twice is insane but necessary
15+
fribidi-1.0.14
16+
freetype-2.13.2 rebuild
17+
harfbuzz-8.4.0 rebuild
18+
freetype-2.13.2 rebuild
19+

‎build.sh

+10-4
Original file line numberDiff line numberDiff line change
@@ -434,13 +434,13 @@ cd $WRKDIR/$PACK
434434
save_configure_help
435435

436436
CC=gcc xxrun ./configure $HOSTBUILD --prefix=$OUT --enable-static=no --enable-shared=yes \
437-
--with-harfbuzz=$with_harfbuzz
437+
--with-harfbuzz=$with_harfbuzz \
438438
CFLAGS="-O2 -I$OUTINC -mms-bitfields" LDFLAGS="-L$OUTLIB"
439439
patch_libtool
440440
xxrun make
441441
xxrun make install
442442
install_bats
443-
with_harfbuzz=yes
443+
with_harfbuzz=auto
444444
;;
445445

446446
# ----------------------------------------------------------------------------
@@ -452,8 +452,14 @@ save_configure_help
452452
sed -i "s|LIBRARY lib%s-0\.dll|LIBRARY lib%s-0$DLLSUFFIX.dll|" src/gen-def.py
453453

454454
xxrun ./configure $HOSTBUILD --prefix=$OUT --disable-dependency-tracking --enable-static=no --enable-shared=yes \
455-
--with-graphite2=auto --with-freetype=auto CFLAGS="-O2 -I$OUTINC -mms-bitfields" LDFLAGS="-L$OUTLIB" \
456-
CFLAGS="-pthread" CXXFLAGS="-pthread"
455+
--with-graphite2=auto --with-freetype=auto --with-cairo=no --with-chafa=no \
456+
CFLAGS="-O2 -I$OUTINC -mms-bitfields -pthread -Wa,-mbig-obj" \
457+
CXXFLAGS="-pthread -Wa,-mbig-obj" \
458+
LDFLAGS="-L$OUTLIB"
459+
460+
# could use -flto -Wl,-allow-multiple-definition instead of -Wa,mbig-obj
461+
# as the latter reportedly does not work on 32 bit
462+
457463
patch_libtool
458464
xxrun make
459465
xxrun make install

0 commit comments

Comments
 (0)
Please sign in to comment.