From 90d7bfe9cfe172baac2f96e2373ae98efff6d25a Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 15 Apr 2020 08:17:33 +0200 Subject: Automatically add -Wl,-u,ghdl_main when -shared is used. For #640 --- src/ghdldrv/ghdldrv.adb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ghdldrv') 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; -- cgit v1.2.3