automake
[Top][All Lists]
Advanced

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

Re: Building static library with PIC


From: Ralf Wildenhues
Subject: Re: Building static library with PIC
Date: Tue, 9 Dec 2008 07:13:32 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Jan,

(I'll try to get to your pending patch soon)

* Jan Engelhardt wrote on Tue, Dec 09, 2008 at 12:10:51AM CET:
> 
> at the moment, the pam_mount project uses the following hack to 
> workaround a libtool warning message:
> 
>       # Makefile.am (abridged)
>       bin_PROGRAMS         = mount.crypt
>       mount_crypt_SOURCES  = nlt-loop.c ...
>       lib_LTLIBRARYES      = pam_mount.la

Typo lib_LTLIBRARIES.

>       pam_mount_la_SOURCES = loop.c ...
>       pam_mount_la_LDFLAGS = -module -avoid-version
> 
>       /* nlt-loop.c */
>       #include "loop.c"
> 
> Warning message that is avoided by doing so:
> 
>       src/Makefile.am: object `loop.$(OBJEXT)' created both with 
>       libtool and without

There is a FAQ entry on this, see 'info Automake "Libtool Issues"'.

> Because it is a bit tiring of updating two _SOURCES lists,

There should never be a need for that.
  foo_2_SOURCES = $(foo_1_SOURCES)

Hope that helps.

Cheers,
Ralf




reply via email to

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