X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 	tests=BAYES_00,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-ID: <4BCA23E1.8000309@x-ray.at>
Date: Sat, 17 Apr 2010 23:10:57 +0200
From: Reini Urban <rurban@x-ray.at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.9) Gecko/20100317 SeaMonkey/2.0.4
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: DBD-DB2-1.78 driver for Perl V5.10 under CYGWIN 1.7.4
References: <d288d2c912e48.4bc9c0f9@shaw.ca>
In-Reply-To: <d288d2c912e48.4bc9c0f9@shaw.ca>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

