--- lib/PAR/Packer.pm.orig	2010-05-11 09:35:23.000000000 +0200
+++ lib/PAR/Packer.pm	2010-05-11 10:50:24.000000000 +0200
@@ -337,6 +337,21 @@
         $self->_check_perl(@$in) if (@$in);
         $self->_sanity_check();
     }
+
+    # On Windows try to detect a Perl that may be linked against some 
+    # libgcc_*.dll (e.g. Strawberry Perl >= 5.12). In this case, 
+    # chances are that parl(dyn)?.exe also will need this DLL to run. 
+    # Hence make sure it gets packed in.
+    $opt->{l} ||= [];
+    if ($^O eq 'MSWin32'
+        && defined $Config{gccversion}  # gcc version 4.x or above was used
+        && $Config{gccversion} =~ m{\A(\d+)}ms && $1 >= 4) {
+        # check for a libgcc_*.dll in the same directory
+        # as the perl executable itself
+        my ($libgcc) = glob(File::Spec->catfile(dirname($^X),
+                                                "libgcc_*$Config{so}"));
+        push @{ $opt->{l} }, $libgcc if $libgcc;
+    }
 }
 
 sub _verify_opts {
