[Issue 1663] pragma(lib, "") don't work on linux

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 12 16:39:02 PDT 2008


------- Comment #3 from unknown at simplemachines.org  2008-04-12 18:39 -------
Created an attachment (id=243)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=243&action=view)
patch to use libfiles, disable pragma statements

This attachment makes two changes that make this pragma work properly:

1. Produces an error when used as a statement.  The Windows compiler does not
support this either, and it doesn't make sense anyway.

2. Adds "-lLIBRARY" to global.params.libfiles for each library on Linux.  This
way, it will be passed to gcc like any other (since I presume obj_includelib
does not work with gcc on Linux.)

I realize #1 isn't exactly this bug, but it is related to the pragma not
working (on any OS) while being silently ignored.



More information about the Digitalmars-d-bugs mailing list