Skip to content

Commit

Permalink
Install OpenSSL's pkgconfig files (#5271)
Browse files Browse the repository at this point in the history
This should avoid interference from the system OpenSSL, since most distros
install pkgconfig files for OpenSSL and CMake may find those if we don't put
ours in the appropriate path.
  • Loading branch information
TimoWilken authored Feb 9, 2024
1 parent 7ab6032 commit 250b372
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@ build_requires:
- zlib
- alibuild-recipe-tools
- "GCC-Toolchain:(?!osx)"
prepend_path:
PKG_CONFIG_PATH: "$OPENSSL_ROOT/lib/pkgconfig"
---
#!/bin/bash -e
rsync -av --delete --exclude="**/.git" $SOURCEDIR/ .
rsync -av --delete --exclude="**/.git" "$SOURCEDIR/" .
case ${PKG_VERSION} in
v1.1*)
v1.1*)
OPTS=""
OPENSSLDIRPREFIX="" ;;
*)
*)
OPTS="no-krb5"
OPENSSLDIRPREFIX="etc/ssl"
;;
Expand All @@ -53,8 +55,7 @@ make # don't ever try to build in multicore
make install_sw # no not install man pages
# Remove static libraries and pkgconfig
rm -rf $INSTALLROOT/lib/pkgconfig \
$INSTALLROOT/lib/*.a
rm -rf "$INSTALLROOT"/lib/*.a
# Modulefile
MODULEDIR="$INSTALLROOT/etc/modulefiles"
Expand All @@ -65,4 +66,5 @@ alibuild-generate-module --lib --bin > "$MODULEFILE"
cat << EOF >> "$MODULEFILE"
prepend-path ROOT_INCLUDE_PATH \$PKG_ROOT/include
EOF
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete "$MODULEDIR"/ $INSTALLROOT/etc/modulefiles
mkdir -p "$INSTALLROOT/etc/modulefiles"
rsync -a --delete "$MODULEDIR/" "$INSTALLROOT/etc/modulefiles"

0 comments on commit 250b372

Please sign in to comment.