[Issue 11523] New: pragma(lib "x") doesn't have any effect in a static library
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 15 15:30:17 PST 2013
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: nobody at puremagic.com
ReportedBy: flamaros.xavier at gmail.com
--- Comment #0 from Xavier Bigand <flamaros.xavier at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list