$OpenBSD: patch-swig_python_setup_py,v 1.13 2019/05/12 08:07:33 landry Exp $

Index: swig/python/setup.py
--- swig/python/setup.py.orig
+++ swig/python/setup.py
@@ -324,7 +324,7 @@ class gdal_ext(build_ext):
         return build_ext.build_extension(self, ext)
 
 
-extra_link_args = []
+extra_link_args = ['-fPIC']
 extra_compile_args = []
 
 gdal_module = Extension('osgeo._gdal',
