1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-05 09:07:10 +03:00

Use pkg-config to know where openssl header files reside

Let Makefile know how to locate openssl header files in a directory other than
the default directories by using pkg-config. If you don't have pkg-config, then
$(shell) returns empty.

Signed-off-by: Hiroshi Takekawa <sian.ht@gmail.com>
This commit is contained in:
Hiroshi Takekawa 2022-01-05 18:25:17 +09:00
parent 6987f06151
commit e8bdbaab22

View File

@ -112,6 +112,7 @@ endif
# Use pkg-config to know where libcrypto resides.
ifneq ($(OS), Darwin)
CPPFLAGS += $(shell pkg-config --cflags-only-I openssl)
LIBS += $(shell pkg-config --libs-only-L openssl) -lcrypto
endif