packages/multimedia/rygel/patches/010-conftest-honor-cc.patch
florian 12e32d6038 rygel: add package
Plugins other than playbin are untested.

Rygel is normally run as a desktop service under a user account. It
doesn't behave like a system daemon. Since running as a desktop service
doesn't make sense for OpenWrt, I've included an init script and made a
crude change to send the output to syslog.

Signed-off-by: Andy Leiserson <andy@leiserson.org>
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@34528 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-05 17:31:34 +00:00

17 lines
437 B
Diff

--- a/m4/vala.m4
+++ b/m4/vala.m4
@@ -28,7 +28,12 @@
void main(){}
_ACEOF
- AS_IF([vala_error=`$VALAC $1 -q -o conftest$ac_exeext conftest.vala 2>&1`],
+ unset vala_cc_args
+ for cflag in $CFLAGS $CPPFLAGS $LDFLAGS; do
+ vala_cc_args="${vala_cc_args:+$vala_cc_args }-X $cflag"
+ done
+
+ AS_IF([vala_error=`$VALAC $1 -q $VALAFLAGS --cc $CC $vala_cc_args -o conftest$ac_exeext conftest.vala 2>&1`],
[$2], [$3])
])