From: Dan Dennedy Date: Sun, 23 Mar 2014 21:33:37 +0000 (-0700) Subject: Fix generating luma images when cross-compiling. X-Git-Url: https://git.sesse.net/?p=mlt;a=commitdiff_plain;h=b98d30a2b3d5f72ea666444115c8dea320998186 Fix generating luma images when cross-compiling. --- diff --git a/src/modules/lumas/Makefile b/src/modules/lumas/Makefile index ed514822..a9b802a1 100644 --- a/src/modules/lumas/Makefile +++ b/src/modules/lumas/Makefile @@ -5,6 +5,12 @@ all: luma create_lumas @./create_lumas luma: luma.c +# When cross-compiling, use the host OS compiler to build the luma +# binary because the files are generated at build time. +# Strips the CROSS prefix from the C compiler variable. +ifdef CROSS + $(subst $(CROSS),,$(CC)) -o $@ luma.c +endif create_lumas: