Files

18 lines
468 B
Plaintext
Raw Permalink Normal View History

Hardcode executable path so that the symlink in the standard PATH
works correctly.
2026-05-10 00:13:36 +00:00
Index: jruby-launcher/jrubyexe.cpp
--- jruby-launcher/jrubyexe.cpp.orig
+++ jruby-launcher/jrubyexe.cpp
@@ -57,8 +57,10 @@ const char *CON_ATTACH_MSG =
2026-05-10 00:13:36 +00:00
#include "unixlauncher.h"
#endif // WIN32
+char JRUBY_PATH[] = "${PREFIX}/jruby/bin/jruby";
int main(int argc, char *argv[], char* envp[]) {
+ argv[0] = JRUBY_PATH;
2026-05-10 00:13:36 +00:00
#ifdef WIN32
checkLoggingArg(argc, argv, true);