From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 20 Mar 2006 22:29:56 +0200 (EET) From: Igor Vlasenko To: ALT Devel discussion list Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="279707905-583651588-1142886596=:3429" X-Virus-Scanned: by ClamAv at binet.com.ua Subject: [devel] C++ libraries linking X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.7 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Mar 2006 20:35:42 -0000 Archived-At: List-Archive: List-Post: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --279707905-583651588-1142886596=:3429 Content-Type: TEXT/PLAIN; charset=windows-1251; format=flowed Content-Transfer-Encoding: 8BIT Уважаемые коллеги! борясь с --as-needed в одном кривом софте (yacas), заметил, что его библиотеки имеют undefined symbols из libstdc++, и действительно, линкуются gcc: gcc -shared .libs/deffile.o ... ./.libs/libyacasnumbers.so ./.libs/libyacasplatform.so -lm -ldl -march=athlon -Wl,--as-needed -Wl,-soname -Wl,libyacas.so.0 -o .libs/libyacas.so.0.0.0 однако это получается из ../libtool --mode=link g++ -pipe -Wall -O2 -march=athlon -Wall -Wl,--as-needed -o libyacas.la -rpath /usr/lib deffile.lo ... ... .lo libyacasnumbers.la libyacasplatform.la -lm -ldl где явно указан g++. Кто знает в чем причина? -- Dr. Igor Vlasenko vlasenko@imath.kiev.ua ===================== Topology department Institute of Math Kiev, Ukraine --279707905-583651588-1142886596=:3429--