Skip to content

Commit

Permalink
Merge pull request #441 from igaw/drop-nostdinc-libressl
Browse files Browse the repository at this point in the history
build: Drop -nostdinc for LibreSSL header checks
  • Loading branch information
igaw authored Jul 22, 2022
2 parents f6748bb + 40bd105 commit db98267
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,9 @@ if openssl_dep.found()
# Test for LibreSSL v3.x with incomplete OpenSSL v3 APIs
is_libressl = cc.has_header_symbol('openssl/opensslv.h',
'LIBRESSL_VERSION_NUMBER',
dependencies: openssl_dep,
args: '-nostdinc')
dependencies: openssl_dep)
has_header = cc.has_header('openssl/core_names.h',
dependencies: openssl_dep,
args: '-nostdinc')
dependencies: openssl_dep)
if is_libressl and not has_header
api_version = 1
endif
Expand Down

0 comments on commit db98267

Please sign in to comment.