Skip to content

Fix include/lib path ordering so wolfSSL paths take precedence#372

Open
ColtonWilley wants to merge 1 commit intowolfSSL:masterfrom
ColtonWilley:wp_fix_include_order
Open

Fix include/lib path ordering so wolfSSL paths take precedence#372
ColtonWilley wants to merge 1 commit intowolfSSL:masterfrom
ColtonWilley:wp_fix_include_order

Conversation

@ColtonWilley
Copy link
Contributor

When --with-openssl= contains stale wolfSSL headers, the compiler picked them up because OpenSSL's -I path appeared before wolfSSL's in CFLAGS. Swap the wolfSSL and OpenSSL detection blocks so wolfSSL's -I/-L paths are added first and take precedence. Also move AC_CHECK_HEADERS for openssl/core.h after OpenSSL paths are set so it can actually find the header.

Fixes ZD 21214

When --with-openssl=<prefix> contains stale wolfSSL headers, the compiler
picked them up because OpenSSL's -I path appeared before wolfSSL's in
CFLAGS. Swap the wolfSSL and OpenSSL detection blocks so wolfSSL's -I/-L
paths are added first and take precedence. Also move AC_CHECK_HEADERS for
openssl/core.h after OpenSSL paths are set so it can actually find the
header.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant