Pārlūkot izejas kodu

tlsa: OpenSSL usually installs lib/|lib64/ and include/ as siblings

S-P Chan 2 gadi atpakaļ
vecāks
revīzija
681ff651ce
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 6 1
      src/modules/tlsa/Makefile

+ 6 - 1
src/modules/tlsa/Makefile

@@ -44,7 +44,12 @@ endif # ifneq ($(CRYPTO_BUILDER),)
 
 else
 	## when linking against static libs compiled from sources
-	DEFS += -I$(LIBSSL_STATIC_SRCPATH)/include
+	## default OpenSSL installation has lib/,lib64/ as siblings of include/
+	ifneq "$(wildcard $(LIBSSL_STATIC_SRCPATH)/../include )" ""
+		DEFS += -I$(LIBSSL_STATIC_SRCPATH)/../include
+	else
+		DEFS += -I$(LIBSSL_STATIC_SRCPATH)/include
+	endif
 	LIBS += $(LIBSSL_STATIC_SRCPATH)/libssl.a $(LIBSSL_STATIC_SRCPATH)/libcrypto.a
 endif # ifneq ($(LIBSSL_STATIC_SRCLIB),yes)