aboutsummaryrefslogtreecommitdiffstats
path: root/src/ghdldrv/default_pathes.ads.in
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-12-05 21:00:35 +0100
committerTristan Gingold <tgingold@free.fr>2016-12-06 20:05:50 +0100
commit0710ab894a5234cc68a6f43dfb9aac95c9c96010 (patch)
tree9c39cde922ed981d3c54983d3893b09ab365ac92 /src/ghdldrv/default_pathes.ads.in
parentbe36587ed1a04b3a9712f837c5b0e82422bd5adf (diff)
downloadghdl-0710ab894a5234cc68a6f43dfb9aac95c9c96010.tar.gz
ghdl-0710ab894a5234cc68a6f43dfb9aac95c9c96010.tar.bz2
ghdl-0710ab894a5234cc68a6f43dfb9aac95c9c96010.zip
Use -fpic if gcc is configured with --enable-default-pie
Test in configure and set Default_Pie in default_pathes.ads Pass -fpic to ghdl1 if Default_Pie is set. Decode -fpic in ghdl1_llvm Fix #213
Diffstat (limited to 'src/ghdldrv/default_pathes.ads.in')
-rw-r--r--src/ghdldrv/default_pathes.ads.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ghdldrv/default_pathes.ads.in b/src/ghdldrv/default_pathes.ads.in
index a7c3d15f7..8b0801e13 100644
--- a/src/ghdldrv/default_pathes.ads.in
+++ b/src/ghdldrv/default_pathes.ads.in
@@ -39,4 +39,5 @@ package Default_Pathes is
Shared_Library_Extension : constant String :=
"@SOEXT@";
+ Default_Pie : constant Boolean := "@default_pie@" = String'("yes");
end Default_Pathes;