specify patch and hook files directly in parts using slapos.recipe.cmmi.
[slapos.git] / component / perl / perl-keep-linker-flags-in-ldflags.patch
1 --- perl-5.12.3/Configure.orig  2011-01-09 21:20:52.000000000 +0100
2 +++ perl-5.12.3/Configure       2011-01-26 19:33:33.106561007 +0100
3 @@ -8092,16 +8092,7 @@
4         case "$dflt" in
5         none) dflt='' ;;
6         esac
7 -       for thisflag in $ldflags; do
8 -               case "$thisflag" in
9 -               -L*|-R*|-Wl,-R*)
10 -                       case " $dflt " in
11 -                       *" $thisflag "*) ;;
12 -                       *) dflt="$dflt $thisflag" ;;
13 -                       esac
14 -                       ;;
15 -               esac
16 -       done
17 +       dflt="$dflt $ldflags"
18  
19         case "$dflt" in
20         ''|' ') dflt='none' ;;