Can I make a convenience library from non-convenience libraries

2015-03-05 Thread Andy Falanga (afalanga)
for this library ... just the previous libraries. All of the examples I see in the automake documentation for making convenience libraries shows pretty much the same thing: e.g. noinst_LTLIBRARIES = convenience.la convenience_la_SOURCES = ... What I'm wondering about doing is something

Re: Set dependencies between convenience libraries

2014-05-21 Thread Russ Allbery
Bob Friesenhahn writes: > In my opinion, convenience libraries are evil (they dramatically slow > down the build) and it is better to use a non-recursive build, using > Makefile variables to list the required object files in the link rather > than using a convenience library. The on

Re: Set dependencies between convenience libraries

2014-05-21 Thread Bob Friesenhahn
On Wed, 21 May 2014, Zé wrote: Is there a way to specify dependencies between convenience libraries, and also set the relevant include paths? Convenience libraries do not have normal dependencies because they are not used as libraries (they are just bundled object files). However, you can

Re: Add convenience libraries to the include path

2014-05-21 Thread Bob Friesenhahn
On Wed, 21 May 2014, Zé wrote: I'm refactoring a small C++ project and in the process I've migrated a component to a convenience library. I would like to add the convenience library's root directory to the project's include path, but I haven't found any reference on how to do this. The clos

Set dependencies between convenience libraries

2014-05-21 Thread
Is there a way to specify dependencies between convenience libraries, and also set the relevant include paths? Thanks, Zé

Add convenience libraries to the include path

2014-05-21 Thread
I'm refactoring a small C++ project and in the process I've migrated a component to a convenience library. I would like to add the convenience library's root directory to the project's include path, but I haven't found any reference on how to do this. The closest I could find was adding ${src

Re: Using convenience libraries with non-recursive make

2012-08-23 Thread Del Merritt
On 08/22/2012 07:12 PM, Bob Friesenhahn wrote: On Wed, 22 Aug 2012, Del Merritt wrote: [Reponding on-list to what was Diego's private response to me; I hope he doesn't mind.] I just finished an experiment with a single libfoo.a and all many-thousands of sources for libfoo_a_SOURCES. The co

Re: Using convenience libraries with non-recursive make

2012-08-22 Thread Bob Friesenhahn
On Wed, 22 Aug 2012, Del Merritt wrote: [Reponding on-list to what was Diego's private response to me; I hope he doesn't mind.] I just finished an experiment with a single libfoo.a and all many-thousands of sources for libfoo_a_SOURCES. The compilation worked, but I got the dreaded "make[1

Re: Using convenience libraries with non-recursive make

2012-08-22 Thread Del Merritt
On 08/15/2012 04:46 PM, Diego Elio Pettenò wrote: On 15/08/2012 12:49, Del Merritt wrote: All good questions; mostly because I am not completely sure yet that a) I won't want to be able to install the sub-libraries later, b) my hand-built makefiles do it this way already, so I was minimizing cha

Re: Using convenience libraries with non-recursive make

2012-08-15 Thread Russ Allbery
Bob Friesenhahn writes: > On Wed, 15 Aug 2012, Diego Elio Pettenò wrote: >> why are you using multiple convenience libraries? If you're not going >> to install any of them, and the result is one final binary, you should >> just list all the sources to that one targ

Using convenience libraries with non-recursive make

2012-08-15 Thread Del Merritt
I'm using automake 1.11.1 and autoconf 2.68. I am switching from a set of hand-written Makefiles to autoconf/automake. I'm switching to autotools since the support for cross-compilation is already there; my hand-written Makefiles are getting hard to manage, and they don't support VPATH builds

Re: Using convenience libraries with non-recursive make

2012-08-15 Thread Del Merritt
/manual/html_node/Libtool-Convenience-Libraries.html#Libtool-Convenience-Libraries Is that a known problem? why are you using multiple convenience libraries? If you're not going to install any of them, and the result is one final binary, you should just list all the sources to that one t

Re: Using convenience libraries with non-recursive make

2012-08-15 Thread Bob Friesenhahn
On Wed, 15 Aug 2012, Diego Elio Pettenò wrote: why are you using multiple convenience libraries? If you're not going to install any of them, and the result is one final binary, you should just list all the sources to that one target. This also helps if you change some of the source files

RE: Using convenience libraries with non-recursive make

2012-08-15 Thread John Calcote
5, 2012 9:27 AM > To: automake@gnu.org > Subject: Using convenience libraries with non-recursive make > > I'm using automake 1.11.1 and autoconf 2.68. I am switching from a set of > hand-written Makefiles to autoconf/automake. I'm switching to autotools > since the suppo

Re: Using convenience libraries with non-recursive make

2012-08-15 Thread Diego Elio Pettenò
On 15/08/2012 08:26, Del Merritt wrote: > >nodist_EXTRA_libmyprog_la_SOURCES = dummy.cxx I would bet that this one is giving you trouble, but... why are you using multiple convenience libraries? If you're not going to install any of them, and the result is one final binary, you

Using convenience libraries with non-recursive make

2012-08-15 Thread Del Merritt
I'm using automake 1.11.1 and autoconf 2.68. I am switching from a set of hand-written Makefiles to autoconf/automake. I'm switching to autotools since the support for cross-compilation is already there; my hand-written Makefiles are getting hard to manage, and they don't support VPATH builds

Re: Do convenience libraries propagate -R linker flags?

2011-03-20 Thread Rhys Ulerich
Hi Ralf, >> I've got a convenience library where the LDFLAGS includes -R: >> noinst_LTLIBRARIES = libsomething.la >> ... >> libsomething_la_LDFLAGS = -Rsomewhere >> and I indeed see "-Rsomewhere" appear within libsomething.la's >> dependency_libs >> line the way I expect. >> >> In ano

Re: Do convenience libraries propagate -R linker flags?

2011-03-18 Thread Ralf Wildenhues
Hello Rhys, * Rhys Ulerich wrote on Mon, Mar 14, 2011 at 05:34:04PM CET: > I've got a convenience library where the LDFLAGS includes -R: > noinst_LTLIBRARIES = libsomething.la > ... > libsomething_la_LDFLAGS = -Rsomewhere > and I indeed see "-Rsomewhere" appear within libsomething.la's

Do convenience libraries propagate -R linker flags?

2011-03-14 Thread Rhys Ulerich
Sort of an odd question at the intersection of automake and libtool... I've got a convenience library where the LDFLAGS includes -R: noinst_LTLIBRARIES = libsomething.la ... libsomething_la_LDFLAGS = -Rsomewhere and I indeed see "-Rsomewhere" appear within libsomething.la's dependency_

Re: Problems with libtool convenience libraries and automake

2007-04-10 Thread Kent Boortz
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > 2) If you want a static library installed, and a convenience library for > subsuming stuff in other libs, then just create both as separate > entities. The name of the second one will remain local to your package. > The downside of this is one extra `

Re: Problems with libtool convenience libraries and automake

2007-04-10 Thread Ralf Wildenhues
Hello Kent, * Kent Boortz wrote on Mon, Apr 09, 2007 at 06:55:18PM CEST: > > I build using "-static" given to libtool when creating executables, to > link statically with our own libraries, but dynamically against system > libraries. There are two answers to address your issues: 1) Upcoming Libt

Problems with libtool convenience libraries and automake

2007-04-09 Thread Kent Boortz
Hi, I build using "-static" given to libtool when creating executables, to link statically with our own libraries, but dynamically against system libraries. Works nicely, except one small problem. One library, lets call it "libstat", I always want to compile static and install in the more privat

Re: convenience libraries & binary size

2006-08-02 Thread Pieter Grimmerink
On Wednesday 02 August 2006 20:18, Harlan Stenn wrote: > Is the *file* size bigger or are the results of 'size progname' bigger? I've just compared the size of the binary, I didn't use the 'size' command. Regards, Pieter

Re: convenience libraries & binary size

2006-08-02 Thread Harlan Stenn
Is the *file* size bigger or are the results of 'size progname' bigger? h

Re: convenience libraries & binary size

2006-08-02 Thread Pieter Grimmerink
ease was because my -fno-exceptions CPPFLAG was not correctly passed to the convenience libraries, so all is fine again after I fixed that. With the correct flags, the actual difference between subdir-objects and convenience libraries turned out to be only only a few K's binary size, but

Re: convenience libraries & binary size

2006-08-01 Thread Andreas Schwab
Pieter Grimmerink <[EMAIL PROTECTED]> writes: > 1. move all >200 sourcefiles back into a single directory... > 2. stop using autotools, so we no longer need convenience libs to handle > subdirectories You don't need convenience libraries to handle subdirectories. Have y

Re: convenience libraries & binary size

2006-08-01 Thread Pieter Grimmerink
On Wednesday 26 July 2006 13:45, Pieter Grimmerink wrote: > In an autotools project, I recently moved sourcefiles into convenience > libraries, because the number of sourcefiles was getting rather large. > > Before this reorganisation, the binary size of the resulting (stripped) >

convenience libraries & binary size

2006-07-26 Thread Pieter Grimmerink
In an autotools project, I recently moved sourcefiles into convenience libraries, because the number of sourcefiles was getting rather large. Before this reorganisation, the binary size of the resulting (stripped) executable was about 800KB. But after I moved about 50% of the total sourcecode

Re: making convenience libraries without libtool

2003-12-11 Thread Daniel Reed
On 2003-12-11T11:00-0500, Marty Leisner wrote: ) I'm using libtool to make convenience libraries merging ) sublibraries... ) ) I really don't need to use libtool since I don't build shared libraries. Ensure your configure.{ac,in} contains at least: AC_PROG_CC AC_PROG_RANL

Re: making convenience libraries without libtool

2003-12-11 Thread Bob Friesenhahn
I believe that Automake relies on libtool to support convenience libraries. Bob On Thu, 11 Dec 2003, Marty Leisner wrote: > I'm using libtool to make convenience libraries merging > sublibraries... > > I really don't need to use libtool since I don't build shared l

making convenience libraries without libtool

2003-12-11 Thread Marty Leisner
I'm using libtool to make convenience libraries merging sublibraries... I really don't need to use libtool since I don't build shared libraries. How can I use automake to build convenience libraries -- or do I need to make a command in the makefile.am I can invoke like this:

Convenience libraries

2001-01-11 Thread Raj (Basavaraj) Karadakal
Hello, I am trying to build a static library using convenience libraries . My directory structure is as follows /home/users/bkaradak/autotools/lmp/custom/ /home/users/bkaradak/autotools/lmp/mylib/rhat/ /home/users/bkaradak/autotools/lmp/mylib/base/ I can