aboutsummaryrefslogtreecommitdiffstats
path: root/src/ghdldrv
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-04-15 08:17:33 +0200
committerTristan Gingold <tgingold@free.fr>2020-04-15 08:17:33 +0200
commit90d7bfe9cfe172baac2f96e2373ae98efff6d25a (patch)
tree6a766f1f9bab63dc8c453b2c48ee1bb1e10a0110 /src/ghdldrv
parent15539c0af43cc63d99239e3b65d936955cde3226 (diff)
downloadghdl-90d7bfe9cfe172baac2f96e2373ae98efff6d25a.tar.gz
ghdl-90d7bfe9cfe172baac2f96e2373ae98efff6d25a.tar.bz2
ghdl-90d7bfe9cfe172baac2f96e2373ae98efff6d25a.zip
Automatically add -Wl,-u,ghdl_main when -shared is used. For #640
Diffstat (limited to 'src/ghdldrv')
-rw-r--r--src/ghdldrv/ghdldrv.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ghdldrv/ghdldrv.adb b/src/ghdldrv/ghdldrv.adb
index c0a9e2b6f..90a64dc54 100644
--- a/src/ghdldrv/ghdldrv.adb
+++ b/src/ghdldrv/ghdldrv.adb
@@ -1054,7 +1054,9 @@ package body Ghdldrv is
end if;
Last_File := Filelist.Last;
Add_Lib_File_List ("grt");
- if not Cmd.Flag_Shared then
+ if Cmd.Flag_Shared then
+ Add_Lib_File_List ("grt-shared");
+ else
Add_Lib_File_List ("grt-exec");
end if;