Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Set LIBS variabile using new package format
@ 2009-06-04  7:51 Daniele Salvatore Albano
  2009-06-04  8:22 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Daniele Salvatore Albano @ 2009-06-04  7:51 UTC (permalink / raw)
  To: buildroot

Hi,

i'm writing some packages for buildroot, i need them for my little
project. Currently i added packages for clamav, with support for
clamd/clamdscan/freshclam, havp, dansguardiand and tinyproxy. For last
two i used the new package format, looking other packages.

However i've a problem: there is a little bug in the tinyproxy
configure so libintl.h is being reknown but -lintl isin't added to
libraries to link and it fails to link so i need to add it. I've tried
setting up LIBS variable, PACKAGENAME_LIBS variable and more but
nothing to do, it doesn't work. I looked for other packages too but
nothing.

There is a way to set change LIBS or CFLAGS variables? Or is better to
do a little patch to apply to configure.ac and use
PACKAGENAME_AUTORECONF to force to rebuild autoconf?

There are docs about this new format?

Best Regards,
Daniele

-- 
Daniele Salvatore Albano
Consulente Informatico
http://www.phpsoft.it
http://www.dacci.it

Servizi:
- Sviluppo in C# e PHP
- Installazione e Amministrazione sistemi Ubuntu, CentOS e Fedora

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] Set LIBS variabile using new package format
  2009-06-04  7:51 [Buildroot] Set LIBS variabile using new package format Daniele Salvatore Albano
@ 2009-06-04  8:22 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2009-06-04  8:22 UTC (permalink / raw)
  To: buildroot

Le Thu, 4 Jun 2009 09:51:15 +0200,
Daniele Salvatore Albano <d.albano@gmail.com> a ?crit :

> However i've a problem: there is a little bug in the tinyproxy
> configure so libintl.h is being reknown but -lintl isin't added to
> libraries to link and it fails to link so i need to add it.

If it's really a bug in tinyproxy itself, then the best solution is to
write a patch, send it upstream, and while waiting for upstream to make
a new release, include the patch in Buildroot as well.

> I've tried setting up LIBS variable, PACKAGENAME_LIBS variable and
> more but nothing to do, it doesn't work. I looked for other packages
> too but nothing.

There's no such thing as PACKAGENAME_LIBS. All the PACKAGENAME_*
variables are documented at the top of package/Makefile.autotools.in.

In your case, PACKAGE_CONF_ENV would quite certainly be the solution, it
allows to set variables passed to the ./configure script.

For example, in bind/bind.mk :

BIND_CONF_ENV = BUILD_CC="$(TARGET_CC)" \
                BUILD_CFLAGS="$(TARGET_CFLAGS)"

> There is a way to set change LIBS or CFLAGS variables? Or is better to
> do a little patch to apply to configure.ac and use
> PACKAGENAME_AUTORECONF to force to rebuild autoconf?

As said previously, it depends. If it's a real bug in tinyproxy's
configure, fix it with a patch. If it's a tuning needed due to
Buildroot specific things, then do it with BIND_CONF_ENV.

Sincerly,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-04  8:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-04  7:51 [Buildroot] Set LIBS variabile using new package format Daniele Salvatore Albano
2009-06-04  8:22 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox