Merge pull request #2743 from InuSasha/fixes/host_openssl_build

openssl: fix host build
This commit is contained in:
CvH 2018-06-02 13:43:50 +02:00 committed by GitHub
commit 411c8ae668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,8 +30,7 @@ PKG_SHORTDESC="The Open Source toolkit for Secure Sockets Layer and Transport La
PKG_LONGDESC="The Open Source toolkit for Secure Sockets Layer and Transport Layer Security" PKG_LONGDESC="The Open Source toolkit for Secure Sockets Layer and Transport Layer Security"
PKG_BUILD_FLAGS="-parallel" PKG_BUILD_FLAGS="-parallel"
PKG_CONFIGURE_OPTS_SHARED="--openssldir=/etc/ssl \ PKG_CONFIGURE_OPTS_SHARED="--libdir=lib \
--libdir=lib \
shared \ shared \
threads \ threads \
no-ec2m \ no-ec2m \
@ -53,6 +52,11 @@ PKG_CONFIGURE_OPTS_SHARED="--openssldir=/etc/ssl \
no-zlib-dynamic \ no-zlib-dynamic \
no-static-engine" no-static-engine"
PKG_CONFIGURE_OPTS_HOST="--prefix=$TOOLCHAIN \
--openssldir=$TOOLCHAIN/etc/ssl"
PKG_CONFIGURE_OPTS_TARGET="--prefix=/usr \
--openssldir=/etc/ssl"
pre_configure_host() { pre_configure_host() {
mkdir -p $PKG_BUILD/.$HOST_NAME mkdir -p $PKG_BUILD/.$HOST_NAME
cp -a $PKG_BUILD/* $PKG_BUILD/.$HOST_NAME/ cp -a $PKG_BUILD/* $PKG_BUILD/.$HOST_NAME/
@ -60,11 +64,11 @@ pre_configure_host() {
configure_host() { configure_host() {
cd $PKG_BUILD/.$HOST_NAME cd $PKG_BUILD/.$HOST_NAME
./Configure --prefix=$TOOLCHAIN $PKG_CONFIGURE_OPTS_SHARED linux-x86_64 $CFLAGS $LDFLAGS ./Configure $PKG_CONFIGURE_OPTS_HOST $PKG_CONFIGURE_OPTS_SHARED linux-x86_64 $CFLAGS $LDFLAGS
} }
makeinstall_host() { makeinstall_host() {
make INSTALL_PREFIX=$TOOLCHAIN install_sw make install_sw
} }
pre_configure_target() { pre_configure_target() {
@ -87,7 +91,7 @@ pre_configure_target() {
configure_target() { configure_target() {
cd $PKG_BUILD/.$TARGET_NAME cd $PKG_BUILD/.$TARGET_NAME
./Configure --prefix=/usr $PKG_CONFIGURE_OPTS_SHARED $PLATFORM_FLAGS $OPENSSL_TARGET $CFLAGS $LDFLAGS ./Configure $PKG_CONFIGURE_OPTS_TARGET $PKG_CONFIGURE_OPTS_SHARED $PLATFORM_FLAGS $OPENSSL_TARGET $CFLAGS $LDFLAGS
} }
makeinstall_target() { makeinstall_target() {