Changeset 36869 in project


Ignore:
Timestamp:
11/23/18 14:25:06 (2 weeks ago)
Author:
chust
Message:

[openssl] Use more pkg-config magic in the build script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/5/openssl/trunk/build-openssl

    r36532 r36869  
    11#!/bin/sh
    2 "$CHICKEN_CSC" -O2 -d0 -C "$CFLAGS" -C "`pkg-config --cflags openssl`" -L "$LDFLAGS" -L "`pkg-config --libs openssl`" "$@"
    3 
     2PKG_CONFIG="`command -v pkg-config`"
     3if [ $? -eq 0 -a -x "$PKG_CONFIG" ]; then
     4    if pkg-config --atleast-version=1.0.2 openssl; then
     5        "$CHICKEN_CSC" -O2 -d0 -C "$CFLAGS" -C "`pkg-config --cflags openssl`" -L "$LDFLAGS" -L "`pkg-config --libs openssl`" "$@"
     6    else
     7        echo 'OpenSSL >= 1.0.2 seems to be unavailable' >&2
     8        exit 1
     9    fi
     10else
     11    "$CHICKEN_CSC" -O2 -d0 -C "$CFLAGS" -L -lssl -L -lcrypto -L "$LDFLAGS" "$@"
     12fi
Note: See TracChangeset for help on using the changeset viewer.