From b263f875926e5a7414e2b211c159bbb13286004c Mon Sep 17 00:00:00 2001 From: DerThorsten Date: Tue, 9 Jul 2024 07:57:39 +0200 Subject: [PATCH] v2 --- recipes/recipes_emscripten/pyproj/py_wrapper.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/recipes/recipes_emscripten/pyproj/py_wrapper.py b/recipes/recipes_emscripten/pyproj/py_wrapper.py index 8403b31f1..df23b0db5 100644 --- a/recipes/recipes_emscripten/pyproj/py_wrapper.py +++ b/recipes/recipes_emscripten/pyproj/py_wrapper.py @@ -8,10 +8,12 @@ filtered_args = [] for arg in args: print("arg:", arg) - if "-Wl,-R$PREFIX/lib" in arg: - print("removed -Wl,-R$PREFIX/lib") - continue - filtered_args.append(arg) + + + if ("-Wl,-R$PREFIX/lib" in arg )or ("-R" in arg): + print("removed arg:", arg) + else: + filtered_args.append(arg) # run the actual command in argv[1] subprocess.run([sys.argv[1]] + filtered_args)