libtool
[Top][All Lists]
Advanced

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

variable telling if static library is enabled


From: Peter Johansson
Subject: variable telling if static library is enabled
Date: Tue, 20 Apr 2010 17:38:43 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

Hello,

We use libtool to create a library and in the test suite we are trying to link against this library statically. The problem is that this test will obviously fail when no static library was created, i.e., only shared library was created. IIUC, this might happen on some platforms but also if the user issues `./configure --disable-static'.

I wonder if there is any variable available that I can use to decide whether I should skip the test. For example, if there is some shell variable available in the configure script I could easily propagate it to the test script. Just searching for static in configure, I found a variable $enable_static, and it seems to work the few test cases I've tried, but if anyone knows of a better way I would like to know.

Thank you.

Peter




reply via email to

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