diff --git a/srcpkgs/openssl/template b/srcpkgs/openssl/template index 9d0afc31e44..833ce2b629d 100644 --- a/srcpkgs/openssl/template +++ b/srcpkgs/openssl/template @@ -41,6 +41,11 @@ do_configure() { sed -i '/^"linux-elf/s/-DTERMIO/-DTERMIOS/' Configure sed -i 's/defined(linux)/0/' crypto/ui/ui_openssl.c + if [ -z "$CHROOT_READY" ]; then + CFLAGS+=" -I${XBPS_MASTERDIR}/usr/include" + LDFLAGS+=" -L${XBPS_MASTERDIR}/usr/lib" + fi + ./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib \ shared zlib enable-md2 threads ${_opts} \ ${_target} -Wa,--noexecstack "${CFLAGS}"