$OpenBSD: patch-swig_python_setup_py,v 1.8 2017/05/19 09:19:48 landry Exp $
Index: swig/python/setup.py
--- swig/python/setup.py.orig
+++ swig/python/setup.py
@@ -216,7 +216,7 @@ class gdal_ext(build_ext):
         self.include_dirs.append(os.path.join(self.gdaldir,'include'))
 
 
-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]:
