[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
revised libtool patch for POSIX 1003.1-2001 hosts
From: |
Paul Eggert |
Subject: |
revised libtool patch for POSIX 1003.1-2001 hosts |
Date: |
Thu, 21 Feb 2002 08:18:52 -0800 (PST) |
I slurped the latest libtool CVS and have a revision to my proposed
patch for POSIX 1003.1-2001 hosts. First, this patch updates
ltmain.in, not ltmain.sh. Second, this patch updates libtool.m4 too,
as libtool.m4 uses the command "head -1" which POSIX no longer allows
(and besides, the GNU coding standards says that configure shouldn't
invoke "head").
2002-02-21 Paul Eggert <address@hidden>
Port to POSIX 1003.1-2001 hosts.
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): head -1 -> sed q
* ltmain.in: Use "sort -u" rather than "sort +2 | uniq".
As far as I can see, it's not necessary to sort based on the
second column anyway.
diff -pru libtool/libtool.m4 libtool-posix/libtool.m4
--- libtool/libtool.m4 Thu Feb 7 11:54:36 2002
+++ libtool-posix/libtool.m4 Thu Feb 21 08:07:42 2002
@@ -4490,7 +4490,7 @@ EOF
# If the export-symbols file already is a .def file (1st line
# is EXPORTS), use it as is.
# If DATA tags from a recent dlltool are present, honour them!
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`head -1
$export_symbols`" = xEXPORTS; then
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`sed q
$export_symbols`" = xEXPORTS; then
cp $export_symbols $output_objdir/$soname-def;
else
echo EXPORTS > $output_objdir/$soname-def;
diff -pru libtool/ltmain.in libtool-posix/ltmain.in
--- libtool/ltmain.in Thu Feb 7 11:54:36 2002
+++ libtool-posix/ltmain.in Thu Feb 21 08:07:23 2002
@@ -3805,12 +3805,8 @@ extern \"C\" {
$mv "$nlist"T "$nlist"
fi
- # Try sorting and uniquifying the output.
- if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
- :
- else
- grep -v "^: " < "$nlist" > "$nlist"S
- fi
+ # Sort and uniquify the output.
+ grep -v "^: " < "$nlist" | sort -u > "$nlist"S
if test -f "$nlist"S; then
eval "$global_symbol_to_cdecl"' < "$nlist"S >>
"$output_objdir/$dlsyms"'
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- revised libtool patch for POSIX 1003.1-2001 hosts,
Paul Eggert <=