$OpenBSD: patch-swig_python_setup_py,v 1.6 2016/05/15 12:18:26 landry Exp $
--- swig/python/setup.py.orig	Mon Apr 25 19:35:56 2016
+++ swig/python/setup.py	Fri May 13 09:46:30 2016
@@ -197,7 +197,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]:
