pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: What is the proper way to install a package under custom sub directory under LOCALBASE ?



On 20.04.21 09:00, Yosuke Kawasaki wrote:

> llvm uses CMAKE and when I set
> CMAKE_INSTALL_PREFIX=LOCALBASE/sub-directory in pkg Makefile, it
> installs files under LOCALBASE/sub-directory.  However, some installed
> executables and libraries such as bin/llvm-link have a parameter
> RUNPATH, which is  directed to "/usr/pkg/lib", instead of
> "/usr/pkg/<sub-directory>/lib" and cannot find shared libraries
> installed together e.g. libLLVM-12git.so.

Take a look in the existing packages, I believe this is what you are
looking for: https://github.com/NetBSD/pkgsrc/blob/trunk/lang/libLLVM/Makefile#L34

> CMAKE_ARGS+= -DCMAKE_EXE_LINKER_FLAGS=${COMPILER_RPATH_FLAG}${PREFIX}/lib/libLLVM




Home | Main Index | Thread Index | Old Index