make/install-pc-file.sh

Wed, 05 Nov 2025 19:40:06 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 05 Nov 2025 19:40:06 +0100
changeset 1471
2309b553c604
parent 1459
22923f0b3dbb
permissions
-rw-r--r--

install shared libs with a new install-lib script, with variants for normal unix and macos - fixes #752 broken macos dylib support

#!/bin/sh

if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] ; then
  echo "Illegal use."
  exit 1
fi

version="$1"
libdir="$2"
includedir="$3"

cat << EOF > "$libdir/pkgconfig/ucx.pc"
libdir=$libdir
includedir=$includedir

Name: ucx
Description: UAP Common Extensions
Version: $version
Libs: -L\${libdir} -lucx
Cflags: -I\${includedir}
EOF

mercurial