openssl: look for headers/libs in XBPS_MASTERDIR for the bootstrap build.

This commit is contained in:
Juan RP 2013-10-24 10:06:26 +02:00
parent 1a68dcc05d
commit 95031be4c2
1 changed files with 5 additions and 0 deletions

View File

@ -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}"