$NetBSD: patch-plugins_grib_pi_CMakeLists.txt,v 1.3 2019/03/25 11:34:05 bouyer Exp $

--- plugins/grib_pi/CMakeLists.txt.orig	2019-02-22 04:55:10.000000000 +0100
+++ plugins/grib_pi/CMakeLists.txt	2019-02-22 14:35:35.500028250 +0100
@@ -283,5 +285,8 @@
 
 ENDIF(WIN32)
 
+IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
+   SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-fPIC")
+ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
 INCLUDE("../PluginLocalization.cmake")
 PLUGIN_LOCALIZATION()
