1003.1-2001 says that "sort +2" is supposed to sort the file
named "+2". An example host that behaves like this is
textutils 2.0.21 with _POSIX2_VERSION=200112.
+2002-05-06 Paul Eggert <eggert@twinsun.com>
+
+ * ltmain.in: Don't assume that "sort +2" works, as POSIX
+ 1003.1-2001 says that "sort +2" is supposed to sort the file
+ named "+2". An example host that behaves like this is
+ textutils 2.0.21 with _POSIX2_VERSION=200112.
+
2002-05-02 Dave Vasilevsky <thevas@mac.com>
* ltmain.in: Remove convenience libraries from deplibs for Darwin.
+
2002-05-02 Fritz Elfert <felfert@to.com>
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): Modify archive_expsym_cmds
fi
# Try sorting and uniquifying the output.
- if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
+ if grep -v "^: " < "$nlist" |
+ if sort -k 3 </dev/null >/dev/null 2>&1; then
+ sort -k 3
+ else
+ sort +2
+ fi |
+ uniq > "$nlist"S; then
:
else
grep -v "^: " < "$nlist" > "$nlist"S