www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2968] New: Add a pragma(framework) on osx

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2968

           Summary: Add a pragma(framework) on osx
           Product: D
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: doob me.com


Currently it's not possible to link to a framework using pragam(lib) on Mac OS
X.
Because almost all non posix system libraries are frameworks on Mac OS X it's
more difficult to link to system libraries on Mac OS X. Therefore I suggest
adding a new pragma only available on Mac OS X: pragma(framework). It will work
just as pragma(lib) but pass "-framework Framework" to gcc instead of
"-llibrary"

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 12 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2968





--- Comment #1 from Jacob Carlborg <doob me.com>  2009-05-13 10:32:20 PDT ---
Created an attachment (id=365)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=365)
This patch implements the enhancement.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 13 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2968





--- Comment #2 from Jacob Carlborg <doob me.com>  2009-05-13 10:34:49 PDT ---
The above patch is against dmd v1.043.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 13 2009