$OpenBSD: patch-swig_python_setup_py,v 1.11 2018/05/13 06:26:35 landry Exp $

Index: swig/python/setup.py
--- swig/python/setup.py.orig
+++ swig/python/setup.py
@@ -303,7 +303,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]:
