summaryrefslogtreecommitdiff
path: root/lang/quickjs/patches/patch-qjsc.c
blob: 2f0605cfb28a236e1f5dabfb387ac9fee9e8bf6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-qjsc.c,v 1.2 2022/01/30 10:55:03 he Exp $

Portability patch for NetBSD.

--- qjsc.c.orig	2021-03-27 10:00:32.000000000 +0000
+++ qjsc.c
@@ -450,7 +450,9 @@ static int output_executable(const char 
              lib_dir, bn_suffix, lto_suffix);
     *arg++ = libjsname;
     *arg++ = "-lm";
+#ifdef CONFIG_LDL
     *arg++ = "-ldl";
+#endif
     *arg++ = "-lpthread";
     *arg = NULL;