Author: kwilliams
Date: Mon Mar 26 19:04:57 2007
New Revision: 9336

Added:
   ExtUtils-CBuilder/trunk/lib/ExtUtils/CBuilder/Platform/dec_osf.pm
Modified:
   ExtUtils-CBuilder/trunk/Changes

Log:
Integrate dec_osf linker fix from blead

Modified: ExtUtils-CBuilder/trunk/Changes
==============================================================================
--- ExtUtils-CBuilder/trunk/Changes     (original)
+++ ExtUtils-CBuilder/trunk/Changes     Mon Mar 26 19:04:57 2007
@@ -2,6 +2,9 @@
 
 0.19
 
+ - Added a workaround for a config error on dec_osf: the linker is
+   $Config{cc}, not $Config{ld}. [Jarkko Hietaniemi]
+
  - Borland's compiler "response files" will not pass through macro
    definitions that contain quotes. The quotes get stripped and there
    seems to be no way to escape them. So we leave macros on the

Added: ExtUtils-CBuilder/trunk/lib/ExtUtils/CBuilder/Platform/dec_osf.pm
==============================================================================
--- (empty file)
+++ ExtUtils-CBuilder/trunk/lib/ExtUtils/CBuilder/Platform/dec_osf.pm   Mon Mar 
26 19:04:57 2007
@@ -0,0 +1,18 @@
+package ExtUtils::CBuilder::Platform::dec_osf;
+
+use strict;
+use ExtUtils::CBuilder::Platform::Unix;
+use File::Spec;
+
+use vars qw($VERSION @ISA);
[EMAIL PROTECTED] = qw(ExtUtils::CBuilder::Platform::Unix);
+$VERSION = '0.01';
+
+sub link_executable {
+  my $self = shift;
+  # $Config{ld} is 'ld' but that won't work: use the cc instead.
+  local $self->{config}{ld} = $self->{config}{cc};
+  return $self->SUPER::link_executable(@_);
+}
+
+1;

Reply via email to