]> git.sesse.net Git - mlt/blobdiff - src/modules/lumas/Makefile
Fix generating luma images when cross-compiling.
[mlt] / src / modules / lumas / Makefile
index ed51482226326fa3930abc45e795752809dc180b..a9b802a11955a0afd2897d6e69b645aa939206e4 100644 (file)
@@ -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: