gradle-native icon indicating copy to clipboard operation
gradle-native copied to clipboard

InstallExecutable overwrites LD_LIBRARY_PATH/DYLD_LIBRARY_PATH

Open mpnewcomb opened this issue 3 years ago • 1 comments

I'm trying to link my test but the script to run the test overwrites the LD_LIBRARY_PATH environment variable. Can you update the script to append to LD_LIBRARY_PATH?

LD_LIBRARY_PATH="$APP_BASE_NAME/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"

https://github.com/gradle/gradle/blob/6bd6ea1f7152d8ce958dd2b4e28b756c67ac033b/subprojects/platform-native/src/main/java/org/gradle/nativeplatform/tasks/InstallExecutable.java#L252

mpnewcomb avatar Oct 13 '22 18:10 mpnewcomb

Sorry for the late reply.

Native support in Gradle is currently not an area of focus. There is no ETA on implementing this.

ov7a avatar Jun 18 '24 12:06 ov7a