Questions tagged [libtool]

GNU libtool is a generic library support script. Libtool hides the complexity of using shared libraries behind a consistent, portable interface.

Building a shared library differs from one architecture to the other. GNU Libtool is a script that allows package developers to create portable compiled libraries. It is often used in conjunction with GNU Automake and GNU Autoconf.

493 questions
0
votes
1 answer

Get libtool library output filename

I'm trying to define an Automake rule that will generate a text file containing the full path to a libtool library that will be built and installed by the same Makefile. Is there a straightforward way of retrieving the output filename for a libtool…
jprice
  • 9,755
  • 1
  • 28
  • 32
0
votes
2 answers

libtool picks up 64-bit library when I tries to build 32-bit program

I have a GNU build system with autoconf-2.69, automake-1.14.1, libtool-2.4.2. I've configured with --host=i686-linux on a x86_64 RHEL6 host OS to build a 32-bit program. The libtool command seems to be: /bin/sh ../libtool --tag=CXX --mode=link…
Yorkwar
  • 1,204
  • 1
  • 11
  • 27
0
votes
0 answers

How to set flags for library objects using libtool

I want to use libtool in order to build my library. My Makefile.am looks like this: lib_LTLIBRARIES = mylib.la mylib_la_SOURCES = source1.c source2.c mylib_la_LIBADD = -lXLibray The problem is that source1 depends on XLibrary and when it tries to…
0
votes
1 answer

Libtool output "unknown option character -o" error

So I have a directory of .o files that I am trying to output to a static library using libtool. From inside the directory containing all the .o files I do the following, where mylibrary.a is located in the parent directory $ libtool -static *.o…
user1855952
  • 1,515
  • 5
  • 26
  • 55
0
votes
1 answer

Error installing macports octave missing *.la files

I am trying to install octave via MacPorts, but it keeps failing due to missing *.la files, the first was libidn.la, then libintl.la, then libiconv.la... how do I get macports to install the libtool versions of these libraries? The *.dylib and *.a…
Craig
  • 901
  • 7
  • 18
0
votes
0 answers

Libtool: Maintain library dependencies in header files

I am using Libtool and the other GNU Autotools (Autoconf, Automake, etc.) to build a shared library. My library has a dependency on another library (hwloc). I allow the user to specify a custom path for hwloc at configuration (the following is in…
Alex Brooks
  • 1,151
  • 1
  • 10
  • 39
0
votes
1 answer

Installation of libtool

I'm trying to install a patch on wireshark, and the compilation of the wireshark requires libtool library. However, after installing libtool from ftp://ftp.gnu.org/pub/gnu/libtool/, the command ./autogen.sh spits out this error: error:…
user3249763
  • 117
  • 3
  • 15
0
votes
1 answer

Using libtool and autoconf

I am working on a system where libraries are installed with libtool (I just discovered libtool) and it seems to be a powerful tool like autotools. My problem is that I am not able to link my programs using autoconf and automake. After some googling…
innoSPG
  • 4,588
  • 1
  • 29
  • 42
0
votes
0 answers

How can I compile with shared library if I use Autotools

I have two C programs named drive.c and mylib.c. drive.c is main module mylib.c is sub modulle that I want work as shared library . I can compile them with following step and run. gcc –fPIC –g –c –Wall mylib.c gcc -shared -Wl,-soname,libmylib.so.1…
user1345414
  • 3,745
  • 9
  • 36
  • 56
0
votes
1 answer

autoconf directive to change 'objdir'

Need a way to instruct autoconf to store the C++ libraries to a different path than the default '.libs' Currently all the objects seems to get stored at 'src/.libs/' , while would like that to be stored at 'src/.libs/x86_64-linux-gcc/' as these are…
Shashi
  • 331
  • 3
  • 12
0
votes
0 answers

How to solve this linker error

When I make a plasma simulation project, the linker reports this error: ../libpsc/.libs/libpsc.a(push_part_1vb_mix.o):(.rodata+0x38): undefined reference to `psc_push_particles_1vb_ps2_ops' Actually, the problem is obvious. The c file…
Asgard
  • 103
  • 1
  • 2
  • 9
0
votes
1 answer

Locating files and dependencies I installed via Homebrew and uninstalling them properly

I'm trying to hack an Xbox Kinect and have followed the instructions located here. Through this process I installed the following files. XQuartz CMake MacPorts libtool libusb OpenNI SensorKinect NiTE I've been advised to uninstall these and…
Shane Yost
  • 231
  • 6
  • 14
0
votes
2 answers

How can I use a library's header files to generate a libfoo.sym file for use with libtool -export-symbols?

I am building a shared library for the Debian GNU/Linux distribution and I am worried about the number of symbols from internal functions that it exports without any need. Since the library is built using autoconf/automake/libtool, the answer is…
hillu
  • 9,423
  • 4
  • 26
  • 30
0
votes
1 answer

libtool changes -lcurl to libcurl.so during link

I have an autotools-based library project that I recently tried to compile on Ubuntu 13.10. It's worked on past versions, but now when it tries to link my test harness, libtool is changing -lcurl to /usr/lib/x86_64-linux-gnu/libcurl.so. Why is it…
Bill Brasky
  • 2,614
  • 2
  • 19
  • 20
0
votes
1 answer

What is ladir in noinst_libfoo_ladir?

I created an example project called foo, its configure.ac is: AC_PREREQ([2.69]) AC_INIT([foo], [1.0.0],…
qdii
  • 12,505
  • 10
  • 59
  • 116