aboutsummaryrefslogtreecommitdiff
path: root/development/quickjs/patches/02-qjsc.c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'development/quickjs/patches/02-qjsc.c.patch')
-rw-r--r--development/quickjs/patches/02-qjsc.c.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/development/quickjs/patches/02-qjsc.c.patch b/development/quickjs/patches/02-qjsc.c.patch
new file mode 100644
index 000000000000..fb1bb58d4e54
--- /dev/null
+++ b/development/quickjs/patches/02-qjsc.c.patch
@@ -0,0 +1,12 @@
+This is a simple patch to compile on 64 bit systems.
+--- quickjs-2021-03-27/qjsc.c 2021-03-27 07:00:32.000000000 -0300
++++ quickjs-2021-03-27-modified/qjsc.c 2022-07-31 19:54:12.464023282 -0300
+@@ -420,7 +420,7 @@
+ pstrcpy(lib_dir, sizeof(lib_dir), exe_dir);
+ } else {
+ snprintf(inc_dir, sizeof(inc_dir), "%s/include/quickjs", CONFIG_PREFIX);
+- snprintf(lib_dir, sizeof(lib_dir), "%s/lib/quickjs", CONFIG_PREFIX);
++ snprintf(lib_dir, sizeof(lib_dir), "%s/quickjs", CONFIG_LIBDIR);
+ }
+
+ lto_suffix = "";