aboutsummaryrefslogtreecommitdiffstats
path: root/misc/libemos/files/patch-libemos-dp_CMakeLists.txt
blob: c67b623412414433fd57b9d0039f7eff7c44f251 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
Fix build: the symlink to libemosR64.a was not created
in ${STAGEDIR}, leading to fs_violations during poudriere test-builds.

--- libemos-dp/CMakeLists.txt.orig	2019-08-10 23:48:55 UTC
+++ libemos-dp/CMakeLists.txt
@@ -42,6 +42,6 @@ ecbuild_add_library(
 #               libemosR64.so ${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR}/libemos.R64.D64.I32.so)" )
 #else()
   install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink
-               libemosR64.a ${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR}/libemos.R64.D64.I32.a)" )
+               libemosR64.a \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR}/libemos.R64.D64.I32.a)" )
 #endif()