libcgi: fix build failure on pure static library builds
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 22 Feb 2014 21:12:00 +0000 (22:12 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 22 Feb 2014 21:49:03 +0000 (22:49 +0100)
commit5ddfe76889ea61195c34c2719decbc69943ae848
treeeaac3b31a6c3ab92b661319cd126aab92760f422
parent4a9eb20de817fa64de865ee3b715827d26ebaa23
libcgi: fix build failure on pure static library builds

libcgi always builds both the shared and static library, which doesn't
work on architecture that don't support shared library at all, such as
Blackfin with the FLAT format. libcgi uses autoconf, but not automake,
and the Makefile is not of the highest possible quality, so this
commit fixes the problem by introducing a "STATIC" variable that can
be set from the environment. When set to a non-empty value, the
Makefile assumes it should only build the static version of the
library.

Note that this package is in desperate need of some care: there is one
single patch that mixes several changes together, it doesn't have a
description or a Signed-off-by line, and there is now a github project
for libcgi at https://github.com/rafaelsteil/libcgi/ that has the same
fixes.

However, for the purpose of the master branch, we're doing the most
minimal fix possible, by just adding this STATIC variable.

Fixes:

  http://autobuild.buildroot.net/results/625/625105bcaf26345f422b225787fc19611b65cd57/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libcgi/libcgi.mk
package/libcgi/libcgi.patch