Sun Dec 01 10:16:57 2013: Request 84588 was acted upon.
Transaction: Correspondence added by RSCHUPP
       Queue: PAR-Packer
     Subject: OSX: incorrect detection of gcc (unsupported option 
'-static-libgcc')
   Broken in: (no value)
    Severity: (no value)
       Owner: RSCHUPP
  Requestors: andrew.penneba...@gmail.com, ga...@szabgab.com, vovk...@gmail.com
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=84588 >


OSX's clang pretends to be gcc, but fails to implement gcc's option 
'-static-libgcc' :(
Fortunately this option is probably only needed in Windows (when using the 
MingW toolchain).

Please try the following patch:

Index: myldr/Makefile.PL
===================================================================
--- myldr/Makefile.PL   (revision 1432)
+++ myldr/Makefile.PL   (working copy)
@@ -121,7 +121,7 @@
 ...
     }
     $mt_cmd = '-$(NOOP)';
-    $boot_ldflags = '-static-libgcc ';
+    $boot_ldflags .= '-static-libgcc ' if $^O eq 'MSWin32';
 } else {
     $out = '-o ';
     $ccdebug = '';


Cheers, Roderich

Reply via email to