This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
:_75 - Update hints/aix.sh for c_r library
[perl5.git] / hints / aix.sh
index 10e7603..25e2048 100644 (file)
@@ -92,4 +92,11 @@ EOM
     # Add the POSIX threads library and the re-entrant libc.
 
     lddlflags=`echo $lddlflags | sed 's/ -lc$/ -lpthreads -lc_r -lc/'`
+
+    # Add the c_r library to the list of libraries wanted
+    # Make sure the c_r library is before the c library or
+    # make will fail.
+    set `echo X "$libswanted "| sed -e 's/ c / c_r c /'`
+    shift
+    libswanted="$*"
 fi