summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-06-08 14:18:55 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-06-08 14:18:55 +0200
commitb3af0682179612648bcbf6e61b98bbcf832a2f15 (patch)
tree177d4062b99ff722ae29481cdac39d7c9494613d
parentedb8f605035e111554cf05dade93d36462fc659f (diff)
librtmp: And now also fix the build on non-Windows again
-rw-r--r--recipes/librtmp/librtmp.recipe8
1 files changed, 6 insertions, 2 deletions
diff --git a/recipes/librtmp/librtmp.recipe b/recipes/librtmp/librtmp.recipe
index 68810901..f9c05b01 100644
--- a/recipes/librtmp/librtmp.recipe
+++ b/recipes/librtmp/librtmp.recipe
@@ -25,8 +25,12 @@ class Recipe(recipe.Recipe):
if self.config.target_platform in [Platform.LINUX, Platform.ANDROID]:
system = 'posix'
# LDFLAGS are passed via XLDFLAGS, and are needed for at least Android
- self.make = 'make SYS=%s prefix=$CERBERO_PREFIX CRYPTO=GNUTLS XLDFLAGS=\\"$LDFLAGS\\" XCFLAGS=\\"$CFLAGS\\" CC=\\"$CC\\" LD=\\"$LD\\"' % (system)
- self.make_install = 'make install SYS=%s prefix=$CERBERO_PREFIX CRYPTO=GNUTLS XLDFLAGS=\\"$LDFLAGS\\" XCFLAGS=\\"$CFLAGS\\" CC=\\"$CC\\" LD=\\"$LD\\"' % (system)
+ if self.config.platform == Platform.WINDOWS:
+ self.make = 'make SYS=%s prefix=$CERBERO_PREFIX CRYPTO=GNUTLS XLDFLAGS=\\"$LDFLAGS\\" XCFLAGS=\\"$CFLAGS\\" CC=\\"$CC\\" LD=\\"$LD\\"' % (system)
+ self.make_install = 'make install SYS=%s prefix=$CERBERO_PREFIX CRYPTO=GNUTLS XLDFLAGS=\\"$LDFLAGS\\" XCFLAGS=\\"$CFLAGS\\" CC=\\"$CC\\" LD=\\"$LD\\"' % (system)
+ else:
+ self.make = 'make SYS=%s prefix=$CERBERO_PREFIX CRYPTO=GNUTLS XLDFLAGS="$LDFLAGS" XCFLAGS="$CFLAGS" CC="$CC" LD="$LD"' % (system)
+ self.make_install = 'make install SYS=%s prefix=$CERBERO_PREFIX CRYPTO=GNUTLS XLDFLAGS="$LDFLAGS" XCFLAGS="$CFLAGS" CC="$CC" LD="$LD"' % (system)
def post_install(self):
deps = ['gcrypt', 'gnutls']