Skip to contentSkip to conversation

Don't use host gcc use target tools.(signed-off this time)

PATCH New Sagaert Johan 2 participants 2 messages Dec 10, 2011 – Dec 11, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Don't use host gcc use target tools.(signed-off this time)

---
 package/libcgi/libcgi.mk |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
package/libcgi/libcgi.mk +2 -0
index 5867ff9..e70be80 100644
@@ -7,5 +7,7 @@ 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
+#Don't use host compiler
+LIBCGI_MAKE_ENV = CC="$(TARGET_CC)"  AR="$(TARGET_AR)"
 
 $(eval $(call AUTOTARGETS))
Signature · 1 line
1.7.8
#1 lore raw

PATCH 1/1 Don't use host gcc use target tools.(signed-off this time)

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sagaert" == Sagaert Johan <[email protected]> writes:

Please don't add comments like that in the subject, as that goes in the final commit message - Rather put it after the '---' line and before the patch.

Sagaert> Signed-off-by: Sagaert Johan <[email protected]>

Sagaert> ---

 Sagaert>  package/libcgi/libcgi.mk |    2 ++

Sagaert> 1 files changed, 2 insertions(+), 0 deletions(-)

Sagaert> diff --git a/package/libcgi/libcgi.mk b/package/libcgi/libcgi.mk Sagaert> index 5867ff9..e70be80 100644
Sagaert> --- a/package/libcgi/libcgi.mk
Sagaert> +++ b/package/libcgi/libcgi.mk
Sagaert> @@ -7,5 +7,7 @@ LIBCGI_VERSION:=1.0

 Sagaert>  LIBCGI_SOURCE:=libcgi-$(LIBCGI_VERSION).tar.gz
 Sagaert>  LIBCGI_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libcgi
 Sagaert>  LIBCGI_INSTALL_STAGING=YES

Sagaert> +#Don't use host compiler
Sagaert> +LIBCGI_MAKE_ENV = CC="$(TARGET_CC)" AR="$(TARGET_AR)"

We should also pass TARGET_CFLAGS, to ensure the right compiler flags are used.

I fixed that up and cleaned up some whitespace issues while I was at it and committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard