https://d.puremagic.com/issues/show_bug.cgi?id=11523
Summary: pragma(lib "x") doesn't have any effect in a static
library
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Xavier Bigand <[email protected]> 2013-11-15
15:30:15 PST ---
A pragma(lib, "x") putted in a module that isn't not directly use by the client
application doesn't make the dependency linked into the generated static
library.
The work around is to report the pragma(lib, "x") declaration in the main.d
module.
PS: I also think that the documentation on pragma(lib, "x") miss to explain the
format that "x" must have on each platform. I am always confuse on the
necessity to have the extension or not, and the "lib" prefix on linux.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------