DBD-DB2-1.78 driver for Perl V5.10 under CYGWIN 1.7.4

Reini Urban rurban@x-ray.at
Sat Apr 17 21:11:00 GMT 2010


ERIC HO schrieb:
> The attached script file was provided to me by T.Allsopp and it works.
 > His email to cygwin somehow never delivered.

Of course shell script attachments can easily be deleted.

Please send that to Praveen upstream so that more users can benefit from 
that. http://search.cpan.org/dist/DBD-DB2/

The bugtracker is at
   https://rt.cpan.org/Public/Dist/Display.html?Name=DBD-DB2

He needs only the 5.10 part to strip -Wl,--export-all-symbols

--- Makefile.PL.orig	2008-07-01 14:35:53.356596500 +1200
+++ Makefile.PL	2008-07-01 14:39:09.480356700 +1200
@@ -134,8 +134,14 @@
        }
      }
    }
-
-  $sysliblist = "-L$DB2LIB -ldb2";
+
+  if ($os eq 'cygwin') {
+    $sysliblist = "-L$DB2LIB -ldb2cli -ldb2api";
+    $opts{LDDLFLAGS} = $Config{lddlflags};
+    $opts{LDDLFLAGS} =~ s/-Wl,--export-all-symbols //;
+  } else {
+    $sysliblist = "-L$DB2LIB -ldb2";
+  }

-- 
Reini Urban
http://phpwiki.org/  http://murbreak.at/

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list