Skip to content

Commit

Permalink
libpsl.sh: fix recent optimization [ci skip]
Browse files Browse the repository at this point in the history
Follow-up to 9e93fdd
  • Loading branch information
vszakats committed Feb 1, 2024
1 parent 8b44bf6 commit ae856f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libpsl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down

0 comments on commit ae856f2

Please sign in to comment.