summarylogtreecommitdiffstats
path: root/use_fpic_for_python.patch
blob: eebd55fe42aab5e65c6938133e498410f16a8a1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/gnatcoll_python.gpr b/src/gnatcoll_python.gpr
index 7dbab9d4..b9c90907 100644
--- a/src/gnatcoll_python.gpr
+++ b/src/gnatcoll_python.gpr
@@ -59,7 +59,7 @@ project GnatColl_Python is
         GnatColl_Shared.Compiler'Switches ("Ada");
 
       for Switches ("C") use
-        ("-g", "-O2") & GnatColl_Shared.Python_Cflags;
+        ("-g", "-O2", "-fPIC") & GnatColl_Shared.Python_Cflags;
    end Compiler;
 
    package Linker is