Skip to content

Instantly share code, notes, and snippets.

@henrich
Last active September 5, 2025 13:00
Show Gist options
  • Save henrich/ad1a98b8f5fd4eccc20ce5bc1e36fdb7 to your computer and use it in GitHub Desktop.
Save henrich/ad1a98b8f5fd4eccc20ce5bc1e36fdb7 to your computer and use it in GitHub Desktop.
built unifont with clang (patched)
set -e && make -C src
make[3]: ディレクトリ '/home/henrich/src/unifont-16.0.04/src' に入ります
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now hex2otf.c -o hex2otf
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c -o unihangul-support.o unihangul-support.c
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c -o johab2syllables.o johab2syllables.c
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unibmp2hex.c -o unibmp2hex
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unicoverage.c -o unicoverage
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unidup.c -o unidup
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unibdf2hex.c -o unibdf2hex
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unibmpbump.c -o unibmpbump
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unifont1per.c -o unifont1per
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unifontpic.c -o unifontpic
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c -o unigen-hangul.o unigen-hangul.c
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unigencircles.c -o unigencircles
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unigenwidth.c -o unigenwidth
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unihex2bmp.c -o unihex2bmp
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unihexgen.c -o unihexgen
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c -o unihexpose.o unihexpose.c
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c -o unifont-support.o unifont-support.c
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c -o unijohab2html.o unijohab2html.c
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unipagecount.c -o unipagecount
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now johab2syllables.o unihangul-support.o -o johab2syllables
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unigen-hangul.o unihangul-support.o -o unigen-hangul
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unihexpose.o unifont-support.o -o unihexpose
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unijohab2html.o unihangul-support.o -o unijohab2html
install -m0755 -d ../bin
install --strip-program=true -m0755 hex2otf johab2syllables unibmp2hex unicoverage unidup unibdf2hex unibmpbump unifont1per unifontpic unigen-hangul unigencircles unigenwidth unihex2bmp unihexgen unihexpose unijohab2html unipagecount ../bin
et -e && make -C src
make[3]: ディレクトリ '/home/henrich/src/unifont-16.0.04/src' に入ります
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now hex2otf.c -o hex2otf
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o unihangul-support.o unihangul-support.c
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o johab2syllables.o johab2syllables.c
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unibmp2hex.c -o unibmp2hex
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unicoverage.c -o unicoverage
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unidup.c -o unidup
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unibdf2hex.c -o unibdf2hex
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unibmpbump.c -o unibmpbump
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unifont1per.c -o unifont1per
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unifontpic.c -o unifontpic
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o unigen-hangul.o unigen-hangul.c
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unigencircles.c -o unigencircles
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unigenwidth.c -o unigenwidth
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unihex2bmp.c -o unihex2bmp
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unihexgen.c -o unihexgen
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o unihexpose.o unihexpose.c
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o unifont-support.o unifont-support.c
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o unijohab2html.o unijohab2html.c
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unipagecount.c -o unipagecount
unipagecount.c:87:11: warning: incompatible redeclaration of library function 'strlen' [-Wincompatible-library-redeclaration]
87 | size_t strlen();
| ^
unipagecount.c:87:11: note: 'strlen' is a builtin with type 'unsigned long (const char *)'
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unihexpose.o unifont-support.o -o unihexpose
1 warning generated.
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now johab2syllables.o unihangul-support.o -o johab2syllables
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unigen-hangul.o unihangul-support.o -o unigen-hangul
cc -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/henrich/src/unifont-16.0.04=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c23 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now unijohab2html.o unihangul-support.o -o unijohab2html
install -m0755 -d ../bin
install --strip-program=true -m0755 hex2otf johab2syllables unibmp2hex unicoverage unidup unibdf2hex unibmpbump unifont1per unifontpic unigen-hangul unigencircles unigenwidth unihex2bmp unihexgen unihexpose unijohab2html unipagecount ../bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment