Skip to content

Commit

Permalink
Make pcre2 a static lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Jan 28, 2024
1 parent 6c44747 commit 90f6da3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,12 @@ endif
pcre2_dep_opt = get_option('use_sys_pcre2')
pcre2_dep = disabler()
if pcre2_dep_opt.enabled() or pcre2_dep_opt.auto()
pcre2_dep = dependency('libpcre2-8', required: false, static: is_static_build)
pcre2_dep = dependency('libpcre2-8', required: false, static: true)
if not pcre2_dep.found()
pcre2_dep = cc.find_library('pcre2', required: true, static: is_static_build)
pcre2_dep = cc.find_library('pcre2', required: true, static: true)
endif
else
pcre2_dep = dependency('pcre2', 'pcre2_dep', version: '>=10.42', required: true, static: is_static_build)
pcre2_dep = dependency('pcre2', 'pcre2_dep', version: '>=10.42', required: true, static: true)
endif

# handle magic library
Expand Down
3 changes: 2 additions & 1 deletion subprojects/packagefiles/pcre2/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ pcre2_includes = [
'src/sljit/',
]

libpcre2 = library('pcre2', pcre2_files,
libpcre2 = static_library('pcre2', pcre2_files,
c_args: libpcre2_c_args,
include_directories: pcre2_includes,
install: false,
)

pcre2_dep = declare_dependency(
Expand Down

0 comments on commit 90f6da3

Please sign in to comment.