Index | Thread | Search

From:
Kirill Miazine <km@krot.org>
Subject:
pkg-config lacking -L and -I dirs with openssl >= 3.3
To:
ports@openbsd.org
Date:
Sat, 7 Dec 2024 00:08:44 +0100

Download raw body.

Thread
Hi, ports@

I'm running one of the automated build nodes for the Exim MTA, which
does builds of stock Exim on OpenBSD. LibreSSL requires some patching,
so I'm using OpenSSL there, with pkg-config to get CFLAGS and LDFLAGS.

I had noticed that for OpenSSL 3.3 pkg-config (eopenssl33) does not provide -I or -L.

<snip>
$ pkg-config --libs eopenssl11        
-L/usr/local/lib/eopenssl11 -lssl -lcrypto
$ pkg-config --libs eopenssl32 
-L/local/lib/eopenssl32 -lssl -lcrypto
$ pkg-config --libs eopenssl33 
-lssl -lcrypto
$ pkg-config --cflags eopenssl11
-I/local/include/eopenssl11
$ pkg-config --cflags eopenssl32 
-I/usr/local/include/eopenssl32
$ pkg-config --cflags eopenssl33 

</snip>

Commands above are on 7.6 system. Did a test now on -current, with same
results (this time with OpenSSL 3.4):

<snip>
root@stable ~ # pkg-config --cflags eopenssl11
-I/usr/local/include/eopenssl11
root@stable ~ # pkg-config --cflags eopenssl32 
-I/usr/local/include/eopenssl32
root@stable ~ # pkg-config --cflags eopenssl33 

root@stable ~ # pkg-config --cflags eopenssl34 

root@stable ~ # pkg-config --libs eopenssl11   
-L/usr/local/lib/eopenssl11 -lssl -lcrypto
root@stable ~ # pkg-config --libs eopenssl32 
-L/usr/local/lib/eopenssl32 -lssl -lcrypto
root@stable ~ # pkg-config --libs eopenssl33 
-lssl -lcrypto
root@stable ~ # pkg-config --libs eopenssl34 
-lssl -lcrypto
</snip>

-- 
    -- Kirill Miazine <km@krot.org>