Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/php: Add -lpthread to detect sqlite for static build
@ 2015-05-30 21:03 Bernd Kuhls
  2015-05-31  8:30 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2015-05-30 21:03 UTC (permalink / raw)
  To: buildroot

Fixes
http://autobuild.buildroot.net/results/e69/e6993d66aeebbe994063a60871412b2235ce5455/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/php/php.mk |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/php/php.mk b/package/php/php.mk
index 8e79c49..191c48c 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -204,6 +204,9 @@ endif
 ifeq ($(BR2_PACKAGE_PHP_EXT_SQLITE),y)
 PHP_CONF_OPTS += --with-sqlite3=$(STAGING_DIR)/usr
 PHP_DEPENDENCIES += sqlite
+ifeq ($(BR2_STATIC_LIBS),y)
+PHP_CONF_ENV += LIBS='-lpthread'
+endif
 endif
 
 ### PDO
-- 
1.7.10.4

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

* [Buildroot] [PATCH 1/1] package/php: Add -lpthread to detect sqlite for static build
  2015-05-30 21:03 [Buildroot] [PATCH 1/1] package/php: Add -lpthread to detect sqlite for static build Bernd Kuhls
@ 2015-05-31  8:30 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-05-31  8:30 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Sat, 30 May 2015 23:03:07 +0200, Bernd Kuhls wrote:
> Fixes
> http://autobuild.buildroot.net/results/e69/e6993d66aeebbe994063a60871412b2235ce5455/
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/php/php.mk |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/package/php/php.mk b/package/php/php.mk
> index 8e79c49..191c48c 100644
> --- a/package/php/php.mk
> +++ b/package/php/php.mk
> @@ -204,6 +204,9 @@ endif
>  ifeq ($(BR2_PACKAGE_PHP_EXT_SQLITE),y)
>  PHP_CONF_OPTS += --with-sqlite3=$(STAGING_DIR)/usr
>  PHP_DEPENDENCIES += sqlite
> +ifeq ($(BR2_STATIC_LIBS),y)
> +PHP_CONF_ENV += LIBS='-lpthread'
> +endif

What about:

PHP_CONF_ENV += LIBS=$(shell $(PKG_CONFIG_HOST_BINARY) --libs sqlite3)

instead ? (Note: I haven't tested, but sqlite3 seems to provide a
correct .pc file).

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2015-05-31  8:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-30 21:03 [Buildroot] [PATCH 1/1] package/php: Add -lpthread to detect sqlite for static build Bernd Kuhls
2015-05-31  8:30 ` Thomas Petazzoni

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