katie/cmake/profile.sh.cmake
Ivailo Monev a69c0d99d8 add shells profile file to workaround musl dynamic loader issue
this file guarantees that on hardened musl libc systems the
libraries can be found by the libraries loader when build without
RPATH and the custom ld config is not respected. it does require
a logout to take effect but I do not know what else can be done
about that.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-14 01:26:40 +02:00

7 lines
168 B
CMake

#!/bin/sh
if [ -n "$LD_LIBRARY_PATH" ];then
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:@QT_LIBRARIES_PATH@"
else
export LD_LIBRARY_PATH="@QT_LIBRARIES_PATH@"
fi