$OpenBSD: patch-swig_python_setup_py,v 1.12 2018/12/28 08:53:59 landry Exp $

Index: swig/python/setup.py
--- swig/python/setup.py.orig
+++ swig/python/setup.py
@@ -300,7 +300,7 @@ class gdal_ext(build_ext):
         return build_ext.build_extension(self, ext)
 
 
-extra_link_args = []
+extra_link_args = ['-fPIC']
 extra_compile_args = []
 
 if sys.platform == 'darwin' and [int(x) for x in os.uname()[2].split('.')] >= [11, 0, 0]:
