Skip to content

Commit

Permalink
Merge pull request #11974 from trofi/nix-bz2-fallback
Browse files Browse the repository at this point in the history
src/perl/meson.build: fall back to 'bz2' library lookup
  • Loading branch information
Ericson2314 authored Nov 26, 2024
2 parents d0f84fd + d67aa03 commit ad7e838
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/perl/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ yath = find_program('yath', required : false)

# Required Libraries
#-------------------------------------------------
bzip2_dep = dependency('bzip2')
bzip2_dep = dependency('bzip2', required: false)
if not bzip2_dep.found()
bzip2_dep = cpp.find_library('bz2')
if not bzip2_dep.found()
error('No "bzip2" pkg-config or "bz2" library found')
endif
endif
curl_dep = dependency('libcurl')
libsodium_dep = dependency('libsodium')

Expand Down

0 comments on commit ad7e838

Please sign in to comment.