From ae856f2aa00ec899e9658f18c194169205d9e279 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 1 Feb 2024 00:02:30 +0000 Subject: [PATCH] libpsl.sh: fix recent optimization [ci skip] Follow-up to 9e93fddff4c01326a177ac38f51619d8b52f847c --- libpsl.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libpsl.sh b/libpsl.sh index 7c4a36966..bcd277955 100755 --- a/libpsl.sh +++ b/libpsl.sh @@ -28,14 +28,15 @@ _VER="$1" # Build manually + [ -f 'suffixes_dafsa.h' ] || python3 'src/psl-make-dafsa' --output-format=cxx+ 'list/public_suffix_list.dat' 'suffixes_dafsa.h' + mkdir -p "${_BLDDIR}" ( cd "${_BLDDIR}" - [ -f 'suffixes_dafsa.h' ] || python3 '../src/psl-make-dafsa' --output-format=cxx+ '../list/public_suffix_list.dat' 'suffixes_dafsa.h' # shellcheck disable=SC2046,SC2086 ${_CC_GLOBAL} ${_CFLAGS_GLOBAL} ${_CFLAGS_GLOBAL_AUTOTOOLS} ${_CPPFLAGS_GLOBAL} \ -DENABLE_BUILTIN -DPACKAGE_VERSION="\"${LIBPSL_VER_}\"" \ - -I. -I../include -c $(find ../src -name '*.c' | sort) + -I. -I.. -I../include -c $(find ../src -name '*.c' | sort) # shellcheck disable=SC2046 "${AR}" rcs libpsl.a $(find . -name '*.o' | sort) )