Add some scripts for investigating the ports tree options.

This commit is contained in:
Tom Alexander
2023-09-01 12:34:55 -04:00
parent 5e81006208
commit a6af4eee2f
5 changed files with 114 additions and 3 deletions

View File

@@ -7,9 +7,7 @@
CPUTYPE?=tigerlake
# CPUTYPE?=x86-64-v4
.endif
OPTIMIZED_CFLAGS=YES
BUILD_OPTIMIZED=YES
WITH_CPUFLAGS=YES
# Disable static for subversion because /usr/local/lib/libutf8proc.a not found despite utf8proc being installed
#
# Disable static for netpbm because "ld: error: undefined symbol: libdeflate_free_compressor" which is "referenced by tif_zip.o:(ZIPVSetField) in archive /usr/local/lib/libtiff.a"
@@ -22,3 +20,7 @@ WITH_CPUFLAGS=YES
.if ${.CURDIR:N*/devel/subversion*} && ${.CURDIR:N*/graphics/netpbm*} && ${.CURDIR:N*/audio/libsndfile*} && ${.CURDIR:N*/www/firefox*} && ${.CURDIR:N*/shells/zsh*}
OPTIONS_SET+=STATIC LTO
.endif
OPTIONS_SET+=OPTIMIZED_CFLAGS
# qemu uses STATIC_LINK instead of the more standard flag of STATIC
OPTIONS_SET+=STATIC_LINK