libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Patch] $pic_mode is empty and not quoted for test


From: Matthias Koeppe
Subject: [Patch] $pic_mode is empty and not quoted for test
Date: 27 Dec 2000 15:57:21 +0100
User-agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) Emacs/20.4

The current CVS libtool reports "test: =: unary operator expected".
The reason is that $pic_mode is empty at this point and not quoted
when passed to `test'.  A patch is included below.

This is on a i586-pc-linux-gnu system, in case this matters.

--- /home/mkoeppe/s/cvs/libtool/ltmain.in~      Wed Dec 27 13:46:07 2000
+++ /home/mkoeppe/s/cvs/libtool/ltmain.in       Wed Dec 27 15:38:40 2000
@@ -458,7 +458,7 @@
       pic_mode=default
       ;;
     esac
-    if test $pic_mode = no && test "$deplibs_check_method" != pass_all; then
+    if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
       # non-PIC code in shared libraries is not supported
       pic_mode=default
     fi

-- 
Matthias Köppe -- http://www.math.uni-magdeburg.de/~mkoeppe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]