postgresql: mark as not available for static linking
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 16 May 2015 14:12:44 +0000 (16:12 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 16 May 2015 15:24:16 +0000 (17:24 +0200)
postgresql currently does not build in BR2_STATIC_LIBS=y
configurations, and since there is little interest in using such a big
piece of software in statically linked configuration, this commit
makes postgresql depends on !BR2_STATIC_LIBS.

Fixes:

  http://autobuild.buildroot.net/results/f9ed96d22e91cdba9ad92c4d4ea52e422bf1f1c9/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/bandwidthd/Config.in
package/php/Config.ext
package/postgresql/Config.in
package/qt/Config.sql.in
package/qt5/qt5base/Config.in

index 0d51f5e8a4158a46259ea83d30c3683b42e2addc..b4a47f2ec698177e79e56801760367270e5fc2d5 100644 (file)
@@ -33,12 +33,16 @@ if BR2_PACKAGE_BANDWIDTHD
 config BR2_PACKAGE_BANDWIDTHD_POSTGRESQL
        bool "enable postgresql log target support"
        select BR2_PACKAGE_POSTGRESQL
+       depends on !BR2_STATIC_LIBS
        help
          Enable support for logging the bandwidthd data to a remote
          (or local) postgresql server. This data can then be viewed
          through a php site. See README in the source code
          (github.com/nroach44/bandwidthd) for more information.
 
+comment "postgresql support needs a toolchain w/ dynamic library"
+       depends on BR2_STATIC_LIBS
+
 config BR2_PACKAGE_BANDWIDTHD_SQLITE3
        bool "enable sqlite3 log storage"
        select BR2_PACKAGE_SQLITE
index 499509037eefe53f4fdf62c06207c7a2d5161437..5324e7958a3c4b1f0d1da8a1136b7aeed47e1a35 100644 (file)
@@ -159,9 +159,14 @@ config BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL
        bool "PostgreSQL"
        select BR2_PACKAGE_POSTGRESQL
        depends on BR2_USE_MMU # postgresql
+       depends on !BR2_STATIC_LIBS
        help
          PDO driver for PostgreSQL
 
+comment "PostgreSQL drivers need a toolchain w/ dynamic library"
+       depends on BR2_USE_MMU
+       depends on BR2_STATIC_LIBS
+
 config BR2_PACKAGE_PHP_EXT_PDO_SQLITE
        bool "SQLite3"
        select BR2_PACKAGE_SQLITE
index 4c53703568285b12cfa57330166c4ac7b82fe118..e9b8f48d4aef757f9e5b163e3a2d52913924a8ba 100644 (file)
@@ -1,6 +1,10 @@
 config BR2_PACKAGE_POSTGRESQL
        bool "postgresql"
        depends on BR2_USE_MMU # fork()
+       # fails to build in a pure static linking scenario, and
+       # postgresql is unlikely to be used in a pure statically
+       # linked environment.
+       depends on !BR2_STATIC_LIBS
        help
          PostgreSQL is a powerful, open source object-relational
          database system.
@@ -13,3 +17,6 @@ config BR2_PACKAGE_POSTGRESQL
          archives with pg_dump and pg_restore.
 
          http://www.postgresql.org
+
+comment "postgresql needs a toolchain w/ dynamic library"
+       depends on BR2_STATIC_LIBS
index 037837fd620fd00f713d297b6c2f20d1225345ad..452edd513301332fc01ebde8963a345e2293f7bb 100644 (file)
@@ -31,10 +31,14 @@ config BR2_PACKAGE_QT_ODBC
 config BR2_PACKAGE_QT_PSQL
        bool "PostgreSQL Driver"
        select BR2_PACKAGE_POSTGRESQL
+       depends on !BR2_STATIC_LIBS
        help
          Build PostgreSQL driver
          If unsure, say n.
 
+comment "PostgreSQL driver needs a toolchain w/ dynamic library"
+       depends on BR2_STATIC_LIBS
+
 choice
        prompt "SQLite 3 support"
        default BR2_PACKAGE_QT_SQLITE_NONE
index 20fd905849ddb489291a0626cccf3e7134bd9737..df1d3dc57c356650f39e2912301655864aee7cea 100644 (file)
@@ -61,10 +61,15 @@ config BR2_PACKAGE_QT5BASE_PSQL
        bool "PostgreSQL Plugin"
        select BR2_PACKAGE_POSTGRESQL
        depends on BR2_USE_MMU # postgresql
+       depends on !BR2_STATIC_LIBS
        help
          Build PostgreSQL plugin
          If unsure, say n.
 
+comment "PostgreSQL plugin needs a toolchain w/ dynamic library"
+       depends on BR2_USE_MMU
+       depends on BR2_STATIC_LIBS
+
 choice
        prompt "SQLite 3 support"
        default BR2_PACKAGE_QT5BASE_SQLITE_NONE