Skip to content

Commit 792909e

Browse files
committed
relocate sdk after install
1 parent 1e75135 commit 792909e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,5 @@ add_subdirectory(package)
5555
install(DIRECTORY ${CMAKE_STAGING_PREFIX}/ DESTINATION ${CMAKE_INSTALL_PREFIX} USE_SOURCE_PERMISSIONS)
5656

5757
add_subdirectory(toolchain)
58+
59+
install(CODE "execute_process(COMMAND ${CMAKE_INSTALL_PREFIX}/relocate-sdk.sh)")

toolchain/fix-rpath.macos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if [ ! -d "$1" ]; then
55
exit 1
66
fi
77

8-
LIBDIR=$(realpath "$1")
8+
LIBDIR="$1"
99
AWK_LIB_PREFIX=$(echo "$LIBDIR" | sed -e 's/\//\\\//g')
1010

1111
find bin lib libexec -type file | while read -r FILE; do

0 commit comments

Comments
 (0)