Skip to contentSkip to conversation

package/php: Add -lpthread to detect sqlite for static build

PATCH New Bernd Kuhls 2 participants 2 messages May 30, 2015 – May 31, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/php: Add -lpthread to detect sqlite for static build

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

---
 package/php/php.mk |    3 +++
 1 file changed, 3 insertions(+)
package/php/php.mk +3 -0
index 8e79c49..191c48c 100644
@@ -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
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 package/php: Add -lpthread to detect sqlite for static build

Dear Bernd Kuhls,

Quoted 13 lines · Bernd Kuhls

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

---
 package/php/php.mk |    3 +++
 1 file changed, 3 insertions(+)
package/php/php.mk +0 -0
index 8e79c49..191c48c 100644

package/php/php.mk endif · line 209

Quoted 6 lines
package/php/php.mk +3 -0
@@ -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

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