2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-01-23 20:49:38 +01:00
|
|
|
#
|
|
|
|
# libcgi
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-12-10 11:46:29 +01:00
|
|
|
|
|
|
|
LIBCGI_VERSION = 1.0
|
2012-08-26 01:52:48 +02:00
|
|
|
LIBCGI_SITE = http://downloads.sourceforge.net/project/libcgi/libcgi/$(LIBCGI_VERSION)
|
2011-12-10 11:46:29 +01:00
|
|
|
LIBCGI_INSTALL_STAGING = YES
|
|
|
|
# use cross CC/AR rather than host
|
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>
2014-02-22 22:12:00 +01:00
|
|
|
LIBCGI_MAKE_ENV = CC="$(TARGET_CC) $(TARGET_CFLAGS)" AR="$(TARGET_AR)" \
|
2014-12-03 22:41:29 +01:00
|
|
|
$(if $(BR2_STATIC_LIBS),STATIC=1)
|
2013-12-11 14:23:43 +01:00
|
|
|
LIBCGI_LICENSE = LGPLv2.1+
|
2006-01-23 20:49:38 +01:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|