postgresql: add host-zic dependency
authorPeter Seiderer <ps.report@gmx.net>
Tue, 22 Apr 2014 15:41:25 +0000 (17:41 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 7 May 2014 13:03:44 +0000 (15:03 +0200)
Fixes zic related build failure [1], patch suggested by
Yann E. MORIN [2].

[1] http://autobuild.buildroot.net/results/9ec69f92a48c1adc50bdb3096008243d842c27e6/
[2] http://lists.busybox.net/pipermail/buildroot/2014-April/094767.html

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/postgresql/postgresql.mk

index 11b167aa93083062e5bf16027e1c924d5459b68b..2606e25e7f32b88d641a9486eaa417fdabf59e9b 100644 (file)
@@ -29,6 +29,9 @@ endif
 ifeq ($(BR2_PACKAGE_TZDATA),y)
        POSTGRESQL_DEPENDENCIES += tzdata
        POSTGRESQL_CONF_OPT += --with-system-tzdata=/usr/share/zoneinfo
+else
+       POSTGRESQL_DEPENDENCIES += host-zic
+       POSTGRESQL_CONF_ENV += ZIC=$$(ZIC)
 endif
 
 ifeq ($(BR2_PACKAGE_OPENSSL),y)