summaryrefslogtreecommitdiff
path: root/Ports/python3/patches/use-rtld-lazy-for-dlopenflags.patch
blob: e4b12d125f599591e5be539d220b6dddb5decd22 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- Python-3.9.4/Python/pystate.c	2021-02-21 20:22:44.083023482 +0100
+++ Python-3.9.4/Python/pystate.c	2021-02-21 20:30:13.907513469 +0100
@@ -223,7 +223,7 @@
 
     interp->eval_frame = _PyEval_EvalFrameDefault;
 #ifdef HAVE_DLOPEN
-#if HAVE_DECL_RTLD_NOW
+#if defined(HAVE_DECL_RTLD_NOW) && !defined(__serenity__)
     interp->dlopenflags = RTLD_NOW;
 #else
     interp->dlopenflags = RTLD_LAZY;