diff options
author | Tristan Gingold <tgingold@free.fr> | 2016-12-05 21:00:35 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2016-12-06 20:05:50 +0100 |
commit | 0710ab894a5234cc68a6f43dfb9aac95c9c96010 (patch) | |
tree | 9c39cde922ed981d3c54983d3893b09ab365ac92 /src/ghdldrv/default_pathes.ads.in | |
parent | be36587ed1a04b3a9712f837c5b0e82422bd5adf (diff) | |
download | ghdl-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.in | 1 |
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; |