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
9
votes
1 answer

Libtool is discarding `-static` flag

I am building flex-2.5.39 which I configured using: ./configure --enable-static LDFLAGS=-static CC=/x86_64-linux-musl/bin/x86_64-linux-musl-gcc But at the very end, libtool is not linking statically. It is, in fact, simply discarding the flag: […
Janus Troelsen
  • 20,267
  • 14
  • 135
  • 196
9
votes
1 answer

Relative or independent paths in libtool .la file

My .la file has full pathnames in both the dependency_libs= section and the libdir= section which makes it difficult to copy my libraries to a different machine (same arch but different path structure). What is the solution to this, besides having…
s g
  • 5,289
  • 10
  • 49
  • 82
9
votes
2 answers

Precompiled headers with Autotools

Is it possible to use gcc precompiled headers in projects using automake / libtool? Adding new make rules to build precompiled headers is not difficult. The issue is that you also have to add compilation flags introduced by libtool and AFAIK it…
Dj Gaspa
  • 253
  • 1
  • 2
  • 9
8
votes
1 answer

Is there any way to use a libtool ".la" file with cmake "target_link_libraries"

In integrating a library into my cmake project, I've been copy-pasting "dependency_libs" from the library's .la file into a variable and then using "target_link_library". I need to get this "dependency_libs" variable directly from the .la file…
user1122069
  • 1,767
  • 1
  • 24
  • 52
8
votes
1 answer

Libtool install warning: xxx.la has not been installed in /user/local/lib

While using autoreconf & automake & libtool to build and install my application, I always get warning "libtool: warning: xxx.la has not been installed in /user/local/lib" and "libtool: warning: remember to run 'libtool --finish /usr/local/lib". I…
Jes
  • 2,614
  • 4
  • 25
  • 45
8
votes
2 answers

glibtoolize on MacOS tells me to consider adding `-I m4' to ACLOCAL_AMFLAGS, but that produces an error

I am trying to get libtool working on my MacOS 10.8.3 machine. Because everything Apple ships is out of date, I'm using macports. I have up-to-date versions: libtool (GNU libtool) 2.4.2 automake (GNU automake) 1.13.1 autoconf (GNU Autoconf)…
vy32
  • 28,461
  • 37
  • 122
  • 246
7
votes
1 answer

libtool: link: warning: .../libstdc++.la seems to be moved

I've been getting a lot of warnings of this form (line-break added for readability): libtool: link: warning: `/usr/local/gcc-5.2.0/lib/gcc/x86_64-unknown-linux-gnu/ 5.2.0/../../../../lib64/libstdc++.la' seems to be moved and couldn't figure out…
Irfy
  • 9,323
  • 1
  • 45
  • 67
7
votes
1 answer

install_name_tool can't use change "because larger updated load commands do not fit"

I need to relink a file with the install_name_tool. The file in question let me change one of the dylib paths, but when I change the second (of 7), I get this error: install_name_tool: changing install names or rpaths can't be redone for:…
Automatico
  • 12,420
  • 9
  • 82
  • 110
7
votes
1 answer

What is libtool's .lai file for?

Can somebody tell me what libtool's .lai file is for? See also What are libtool's .la file for?
user239558
  • 6,964
  • 1
  • 28
  • 35
7
votes
1 answer

Ranlib not found

I'm trying to cross-compile gst-ti-plugin for arm device but when I do make install libtool returns me error: ../libtool: line 1085: arm-none-linux-gnueabi-ranlib: command not found The problem here is that this tool is available from PATH and when…
7
votes
1 answer

Autotools build fails due to subdir-objects option in AM_INIT_AUTOMAKE

I'm currently working on a C++ project which relies on recursive automake for building. I want to build a shared library and the Makefile.am in the src directory of the library looks like # ... # Library name lib_LTLIBRARIES =…
Marcel
  • 616
  • 1
  • 5
  • 15
7
votes
0 answers

Autoconf and Libtool Are Insanely Stubborn about Static Linkage

I'm using MinGW-w64 with POSIX threads. I want to build GNU gettext with POSIX threads and as shared libraries (DLLs in this case). However, when one builds runtime artifacts (such as DLLs or executables) which depend on POSIX threads with…
Alexander Shukaev
  • 16,674
  • 8
  • 70
  • 85
7
votes
1 answer

libtool: undefined symbols not allowed in i686-pc-mingw32 shared

I'm using autotools as build system for a library of mine. Recently library is ported to Windows. Library compiles and links successfully though I encountered a strange error. There is only static libraries after configure and make. Evertything…
sorush-r
  • 10,490
  • 17
  • 89
  • 173
7
votes
1 answer

libtool: object name conflicts in archive (NETCDF + MinGW)

I am going to use NetCDF in windows and I think it has to be compiled with MinGW since my main program and all other libraries are compiled with MinGW already. But when I used MinGW (gcc version 4.6.2). I got some error messages: Making all in…
FortCpp
  • 906
  • 2
  • 12
  • 28
7
votes
1 answer

LTLIBRARIES: mv *.Tpo *.Plo, but the former doesn't exist and the latter already does

I'm doing a pretty straight-forward conversion of an existing library (libtcod) to Autotools (for OS X happiness). Unfortunately, when I switch my Makefile.am's lib_LIBRARIES rule to lib_LTLIBRARIES, the build goes from successful to un. Excerpt…
Adam Blinkinsop
  • 191
  • 1
  • 6
1 2
3
32 33