Re: Replacing ar with libtool

2024-08-10 Thread Simon Richter
Hi, On 8/10/24 20:08, Navin P wrote: When i run make -j1 i find all the object files  libx.a but when i do make -j8 i find some missing object files inside libx.a. Typically you'd generate all objects first, then archive them in a single invocation. This is I/O bound anyway, so you're not lo

Re: What does -no-fast-install libtool option do?

2018-03-26 Thread Simon Richter
Hi, On 26.03.2018 18:57, Basin Ilya wrote: > The expected drawback is a slower `make install`, but I'm fine with it. That doesn't work for most use cases, where the build is running as an user, while "make install" runs as root. "make install" should not write anything to the build tree, because

Re: MSW DLLs support in libtool

2016-02-10 Thread Simon Richter
Hi, On 10.02.2016 17:49, Vadim Zeitlin wrote: > *** Warning: Trying to link with static lib archive > /opt/msw/i686-w64-mingw32/lib/libboost_filesystem.a. > *** I have the capability to make that library automatically link in when > *** you link to this library. But I can only do this if you ha

Re: Compiling C++

2015-07-06 Thread Simon Richter
Hi, On 06.07.2015 20:17, martin wrote: > Random files are generated wth .loT file type. Files ending in T are temporary files that are generated because some compilers do not delete the output file on failure. These are renamed to the same name without the T at the end of the build step they bel

Re: Avoid exporting of internal symbols

2013-03-04 Thread Simon Richter
Hi, On 04.03.2013 07:23, Satz Klauer wrote: > libtool --mode=compile g++ -Wall -fPIC -shared -Wno-unused [...] > As far as I understood it, the statement "-export-symbols-regex > mylib_" should ensure only functions starting with "mylib_" should be > exported by the resulting library. Indeed, h

Re: link-time optimization

2010-03-29 Thread Simon Richter
Hi, On Sun, Mar 28, 2010 at 05:33:44PM +0200, Ralf Wildenhues wrote: > * doc/libtool.texi (FAQ, Stripped link flags): New nodes. > (Wrapper executables): Replace bug address with macro. > (Compile mode, Link mode): Document `-Wc,' and `-Xcompiler ' > semantics better. Hmm, -Wc is

link-time optimization

2010-03-24 Thread Simon Richter
Hi, I'm trying to use link time optimization with gcc 4.5, which somewhat works :), but requires the compiler flags to be passed to the linking step as well. libtool however removes them from the command line. Is there any harm in passing them to the linking step? Simon signature.asc Descrip

relinking and cross-compiling

2010-03-22 Thread Simon Richter
Hi, I'm using libtool in a project that builds a few shared libraries, a main program and plugins to the program, all in the same source package. I've made Debian style packages from my source tree, which requires installation into DESTDIR to work. In the native case, this works: /bin/sh ../lib

Circular dependencies between shared libraries, an (icky) use case

2009-11-10 Thread Simon Richter
Hi, I have a project with two libraries exposing different levels of detail to the user, basically one provides (C++) base classes with some functionality, and the other one provides classes derived from those with the actual implementation. Since the latter is going to change often, I'd rather n

Re: Opening libraries by soname

2007-12-10 Thread Simon Richter
Hi, Paolo Bonzini schrieb: In debian, libncurses.so is not installed unless libncurses-dev is also installed. Therefore, programs should open libncurses.so.5 directly. No. Ideally the installation script for your program would create a symlink from a private directory for your program to th

Re: Making shared libraries (DLLs) on Windows: -no-undefined

2007-05-01 Thread Simon Richter
Hi, John Brown wrote: > I gather that on Linux, you *can* create a shared library with undefined > symbols. Indeed. > 1) Why would anyone do that intentionally? To link against another library, or to import a symbol defined by the main program or a library loaded by the main program before. T

linking a module for a testcase

2007-01-18 Thread Simon Richter
Hello, I'm trying to write testcases for a plugin loader (basically a C++ wrapper around ltdl that takes care of registering the new creators in the factories), and for this, I need to link a plugin that is then supposed to be loaded from the testcases. For some reason, libtool builds said p

RFC: Support for unstable ABIs

2006-07-11 Thread Simon Richter
Hi, a lot of projects that are just starting out still make quite a lot of changes to their library ABI, so it does not make full sense to build a shared library right away, but sometimes it is still necessary to have PIC code around, for example when building a plugin to be dlopen()ed by some pro

Re: PIE support

2005-11-30 Thread Simon Richter
Hi, Mike Frysinger wrote: I don't know, but PIE and PIC don't compile to same thing AFAICT. I don't know the significance of that though. IIRC -pie is only a linker flag that a) affects selection of the linker script b) disallows certain relocation types c) notes the position-independence

library with static-only parts

2005-07-10 Thread Simon Richter
Hi, a library I'm writing has the possibilty of being extended with plugins that can be loaded with ltdl. In order to avoid having to export lt_dlpreloaded_symbols from the main program to the library (thus making prelinking impossible and being generally ugly and unportable). I'd like to have a l

Re: Alternate SONAME values

2005-07-08 Thread Simon Richter
Hi, Keith Packard wrote: > I want the SONAME to be libXaw.so.6, but the filename to be libXaw6.la, > libXaw6.so.6.0.1, libXaw6.so.6 and libXaw6.so There is no need to name the real file libXaw6.so.6.0.1, as the 6 is mentioned twice this way (libXaw.so.6.0.1 suffices). The unversioned symlink and

modules dlopened from a library

2005-05-30 Thread Simon Richter
Hi, I have a shared library that internally uses plugins that are dlopened (or dlpreopened). For this to work, I basically have the following options: - Have the application load the list of preloaded symbols. This means that the application programmer needs to be aware that my library uses ltdl

Re: whole_archive/-r

2004-12-21 Thread Simon Richter
Hi, 1) I have a C++ library that makes use of global constructors. This should also work when using static libraries, as long as the global constructors are contained within the same archive member as the object they construct, and everyone who uses the result from a static initialization also h

Re: Including static libraries in shared libraries with libtool.

2004-09-26 Thread Simon Richter
Hi, > My intentions here are: > Build the sources for libauthuserdb.la. Take their object code, and grab > whatever modules from libauth.la that are references by stuff in > libauthuserdb.la, and place all of that into a shared library. Not possible without reimplementing parts of the linker.

Re: Using libtool together with the ${ORIGIN} soname variable

2003-07-08 Thread Simon Richter
Hi, > This isn't about plugins, it's actually about a few helper libraries which > are needed by the main program. There is nothing to say against installing these libraries into $(libdir), although you can also simply link them statically when they are used by only one program (gives you a 5% s

Re: Using libtool together with the ${ORIGIN} soname variable

2003-07-08 Thread Simon Richter
Hi, > However, I need these plugins to be in the same directory as where the main > executable resides, and I cannot install them into one of the $blah/lib > paths or add the current path to LD_LIBRARY_PATH. This is a bad idea. Most likely, your program will end up in /usr/bin or /usr/local/bin

Re: Migrating existing libraries to libtool

2003-02-17 Thread Simon Richter
Keith, > I maintain a few X libraries and would like to see about transitioning > them from imake to automake. The stumbling block is that I cannot change > the library version numbers across this transition on any operating system. To remain binary compatible, it suffices to have the same maj

Re: [PATCH] Re: Problem on rs6000-ibm-aix4.3.2.0 (Fortran) -DPIC

2003-01-16 Thread Simon Richter
Robert, > Ok, here it is. This patch changes AC_LIBTOOL_PROG_COMPILER_PIC > so that it only appends -DPIC to the default "C" tag and the CXX > tag for C++. I would also like to deprecate -DPIC in the 1.5 release > to make it clear we intend to do away with it. I would also like > to ask anyone

Re: Problem on rs6000-ibm-aix4.3.2.0 (Fortran) -DPIC

2003-01-15 Thread Simon Richter
Robert, > I think you can ignore inline assembler for anything other than > C (including C++). I've never thought about it, but inline assembler > in Fortran code sounds truly frightening! Anyway, if it was so > important, why doesn't the compiler define it for you? Current gcc defines __PIC__

Re: Problem on rs6000-ibm-aix4.3.2.0 (Fortran) -DPIC

2003-01-15 Thread Simon Richter
Robert, > Ok then, I'll see if I can make "-DPIC" into > a conditionally-set thing that would be set to "" for anything > but C and C++. Can we agree on that? ;) Yes, although it would be nice if the other languages also had a way of knowing they should emit PIC, at least if they allow condition

Re: Problem on rs6000-ibm-aix4.3.2.0 (Fortran) -DPIC

2003-01-15 Thread Simon Richter
Hi, > Good point, we never really resolved this issue. > All in favor of dropping -DPIC entirely say "I"! I'm against it. If you have optimized assembler versions of some code for some platforms (like the STL has, for example) and some of that code is not PIC, it is a good idea to enclose it i