1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- build/lib/gnat/libadalang.gpr 2017-06-14 20:38:02.947741666 +1000
+++ build/lib/gnat/libadalang.gpr-new 2017-06-14 20:39:57.568356667 +1000
@@ -88,9 +88,9 @@
for Default_Switches ("Ada") use
Common_Ada_Cargs & ("-g", "-O0", "-gnatwe", "-gnata");
- for Default_Switches ("C") use Common_C_Cargs & ("-g3", "-O0");
+ for Default_Switches ("C") use Common_C_Cargs & ("-g3", "-O0", "-fPIC");
- for Switches ("quex_lexer.c") use Common_C_Cargs & ("-g0", "-O0");
+ for Switches ("quex_lexer.c") use Common_C_Cargs & ("-g0", "-O0", "-fPIC");
-- This file is *huge* and the debugging information for it harms
-- Valgrind runs. We almost never have to debug this file so
-- this is acceptable.
@@ -101,13 +101,13 @@
for Default_Switches ("Ada") use
Common_Ada_Cargs & ("-g", "-Ofast", "-gnatp", "-gnatn2");
- for Default_Switches ("C") use Common_C_Cargs & ("-Ofast");
+ for Default_Switches ("C") use Common_C_Cargs & ("-Ofast", "-fPIC");
case Target is
when "x86-linux" | "x86-windows" =>
for Switches ("quex_lexer.c") use Common_C_Cargs
& ("-Ofast", "-fno-ree", "-fdisable-rtl-cprop_hardreg",
- "-fdisable-rtl-sched2", "-mno-stv");
+ "-fdisable-rtl-sched2", "-mno-stv", "-fPIC");
-- Deactivate because of memory usage, see P726-024. This
-- limits the memory usage peaks of GCC 6 based compilers
-- and should prevent OOM on 32-bit platforms.
|