summarylogtreecommitdiffstats
path: root/use-fpic.patch
blob: 066c511f42b48fbd29e907f4e641e9e8d188eea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/shared.gpr.in b/shared.gpr.in
index ba14efeb..a4748844 100644
--- a/shared.gpr.in
+++ b/shared.gpr.in
@@ -60,12 +60,12 @@ project Shared is
              for Switches ("Ada") use
                 ("-gnat05", "-gnatQ", "-gnatwae", "-gnatay", "-g", "-O0",
                  "-Werror=format-security");
-             for Switches ("C") use ("-g", "-O0");
+             for Switches ("C") use ("-g", "-O0", "-fPIC");
          when "Production" =>
              for Switches ("Ada") use
                 ("-gnat05", "-gnatQ", "-O2", "-gnatn", "-gnatwa", "-gnaty",
                  "-Werror=format-security");
-             for Switches ("C") use ("-O2");
+             for Switches ("C") use ("-O2", "-fPIC");
       end case;
 
       for Switches ("C") use Compiler'Switches ("C") & Gtk_Include;