Skip to content

Commit 40bd105

Browse files
committed
build: Drop -nostdinc for LibreSSL header checks
-nostdinc is only necessary when the LibreSSL is not the default SSL library on the system and OpenSSL header files are present in the default include paths. Though if LibreSSL found in standard paths 'pkg-config --cflags' will include the standard include paths and hence the header files are not found. So -nostdinc is only useful for mixed installations which is very unlikely a very common setup. So let's just drop the -nostdinc and if the need is to support such setups, we can still try to figure out how to support this. Signed-off-by: Daniel Wagner <[email protected]>
1 parent f6748bb commit 40bd105

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

meson.build

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,9 @@ if openssl_dep.found()
8181
# Test for LibreSSL v3.x with incomplete OpenSSL v3 APIs
8282
is_libressl = cc.has_header_symbol('openssl/opensslv.h',
8383
'LIBRESSL_VERSION_NUMBER',
84-
dependencies: openssl_dep,
85-
args: '-nostdinc')
84+
dependencies: openssl_dep)
8685
has_header = cc.has_header('openssl/core_names.h',
87-
dependencies: openssl_dep,
88-
args: '-nostdinc')
86+
dependencies: openssl_dep)
8987
if is_libressl and not has_header
9088
api_version = 1
9189
endif

0 commit comments

Comments
 (0)