This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
When threads are active we need -lpthread, but previous `fix' of
[perl5.git] / hints / aix.sh
index da61d31..acf8222 100644 (file)
@@ -244,14 +244,13 @@ EOM
            esac
 
        # Insert pthreads to libswanted, before any libc or libC.
            esac
 
        # Insert pthreads to libswanted, before any libc or libC.
-       set `echo X "$libswanted "| sed -e 's/ \([cC]_r\) / pthreads \1 /'`
+       set `echo X "$libswanted "| sed -e 's/ \([cC]\) / pthreads \1 /'`
        shift
        libswanted="$*"
        # Insert pthreads to lddlflags, before any libc or libC.
        shift
        libswanted="$*"
        # Insert pthreads to lddlflags, before any libc or libC.
-       set `echo X "$lddlflags " | sed -e 's/ \(-l[cC]_r\) / -lpthreads \1 /'`
+       set `echo X "$lddlflags " | sed -e 's/ \(-l[cC]\) / -lpthreads \1 /'`
        shift
        lddlflags="$*"
        shift
        lddlflags="$*"
-
        ;;
 esac
 EOCBU
        ;;
 esac
 EOCBU