$OpenBSD: patch-swig_python_setup_py,v 1.7 2017/02/07 08:16:45 landry Exp $
--- swig/python/setup.py.orig	Fri Jan 20 09:20:59 2017
+++ swig/python/setup.py	Mon Feb  6 11:22:35 2017
@@ -210,7 +210,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]:
