add pic

Diffs=
c5eb69645 add pic (#7589)

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
diff --git a/.rive_head b/.rive_head
index fe0b780..ab1b79e 100644
--- a/.rive_head
+++ b/.rive_head
@@ -1 +1 @@
-3bf0df5c0822e5db2764b9a1b65407baee1f6ad0
+c5eb69645dfbb0219f18506d8575e67eb2350c13
diff --git a/build/rive_build_config.lua b/build/rive_build_config.lua
index f3b5775..96089e5 100644
--- a/build/rive_build_config.lua
+++ b/build/rive_build_config.lua
@@ -70,6 +70,11 @@
 })
 
 newoption({
+    trigger = 'with-pic',
+    description = 'enable position independent code',
+})
+
+newoption({
     trigger = 'with-exceptions',
     description = 'don\'t disable exceptions (nonstandard for Rive)',
 })
@@ -105,6 +110,13 @@
 filter({ 'options:with-exceptions' })
 exceptionhandling('On')
 
+filter({ 'options:with-pic' })
+do
+    pic('on')
+    buildoptions({ '-fPIC' })
+    linkoptions({ '-fPIC' })
+end
+
 filter('options:config=debug')
 do
     defines({ 'DEBUG' })