Fix inexplicable change to dylib paths with new VM. fix-mac
authorcah <cah@ableton.com>
Fri, 17 Dec 2021 21:11:54 +0000 (22:11 +0100)
committercah <cah@ableton.com>
Fri, 17 Dec 2021 21:11:54 +0000 (22:11 +0100)
After re-creating the macOS build VM, suddenly liblwext4 ends
up linked as @rpath/liblwext4.dylib which breaks the DoM make_dmg
script.  I can only guess this is due to me installing a newer
CMake.

cscript

diff --git a/cscript b/cscript
index 4fad21a8368db8a26c045b355618657c54c9e64f..1dffd4ae5cfd9f6087d407df1f2bd3bf338d0bd8 100644 (file)
--- a/cscript
+++ b/cscript
@@ -40,6 +40,7 @@ def make_toolchain(filename, arch, sdk_prefix, sdk):
         print('SET(CMAKE_C_FLAGS_RELEASE "-O2 -g -ggdb3" CACHE INTERNAL "c release compiler flags")', file=f)
         print('SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -g -ggdb3" CACHE INTERNAL "cxx release compiler flags")', file=f)
         print('SET(CMAKE_ASM_FLAGS_RELEASE "" CACHE INTERNAL "asm release compiler flags")', file=f)
+        print('SET(CMAKE_SKIP_RPATH YES)', file=f)
 
 
 def build(target, options):