Find Homebrew OpenSSL through brew
The hardcoded openssl@3.6 include path fails macOS CI when that formula is absent. Ask brew for the installed OpenSSL prefix and use it for both headers and libraries. Built all three mfd_aes_brute tools with Clang and GCC 16 against OpenSSL 3 and 4 on macOS. Existing linker deprecation warnings remain.
This commit is contained in:
1 parent
d596fe6b04
commit
1eb73852d7
1 file changed
+3
-2
@@ -39,8 +39,9 @@ endif
|
||||
|
||||
# OS X needs linking to openssl
|
||||
ifeq ($(USE_BREW),1)
|
||||
MYCFLAGS += -I$(BREW_PREFIX)/opt/openssl@3/include -I$(BREW_PREFIX)/opt/openssl@3.6/include
|
||||
MYLDFLAGS += -L$(BREW_PREFIX)/opt/openssl@3/lib -L$(BREW_PREFIX)/opt/openssl@3.6/lib
|
||||
OPENSSL_PREFIX := $(shell brew --prefix openssl)
|
||||
MYCFLAGS += -I$(OPENSSL_PREFIX)/include
|
||||
MYLDFLAGS += -L$(OPENSSL_PREFIX)/lib
|
||||
endif
|
||||
|
||||
ifeq ($(USE_MACPORTS),1)
|
||||
|
||||
Reference in new issue
Block a user