libcgi: build for target, not host
authorSagaert Johan <sagaert.johan@skynet.be>
Sat, 10 Dec 2011 10:46:29 +0000 (11:46 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 11 Dec 2011 22:15:49 +0000 (23:15 +0100)
[Peter: Ensure correct CFLAGS are used, whitespace cleanup]
Signed-off-by: Sagaert Johan <sagaert.johan@skynet.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/libcgi/libcgi.mk

index 5867ff99db04d1d89ffc55a5c1413a524db06e25..5a52fa613d0ef84a2ce84c5e62f9a761c01abed4 100644 (file)
@@ -3,9 +3,11 @@
 # libcgi
 #
 #############################################################
-LIBCGI_VERSION:=1.0
-LIBCGI_SOURCE:=libcgi-$(LIBCGI_VERSION).tar.gz
-LIBCGI_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libcgi
-LIBCGI_INSTALL_STAGING=YES
+
+LIBCGI_VERSION = 1.0
+LIBCGI_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libcgi
+LIBCGI_INSTALL_STAGING = YES
+# use cross CC/AR rather than host
+LIBCGI_MAKE_ENV = CC="$(TARGET_CC) $(TARGET_CFLAGS)" AR="$(TARGET_AR)"
 
 $(eval $(call AUTOTARGETS))