]> git.sesse.net Git - mlt/commitdiff
Fix generating luma images when cross-compiling.
authorDan Dennedy <dan@dennedy.org>
Sun, 23 Mar 2014 21:33:37 +0000 (14:33 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 23 Mar 2014 21:33:37 +0000 (14:33 -0700)
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: