aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/libdvb/files/ldflags.patch
diff options
context:
space:
mode:
authorStephen Simpson <stephen@quaddro.net>2009-11-29 16:02:22 +0000
committerHenning Heinold <heinold@inf.fu-berlin.de>2009-11-30 23:51:06 +0100
commit0c84ce234bb065fe646b79f26a8f789fd7d14d16 (patch)
tree00a3c8c05b980519d62eeb97e313f82e592fa6a6 /recipes/libdvb/files/ldflags.patch
parent73ec71fa4554390dde8366a620d82ad288db85b7 (diff)
downloadopenembedded-0c84ce234bb065fe646b79f26a8f789fd7d14d16.tar.gz
libdvb 0.5.5.1: Fix build on GCC 4.x
* sample_progs/cam_menu.hh was missing #include <cstring>, does not error on gcc < 4.x * dvb-mpegtools/Makefile did not pass LDFLAGS when necessary for linking, causing QA Issues Recipe changes: * Change recipe to remove CFLAGS from config.mk to allow the CFLAGS variable passed to be used instead * Add patches to recipe
Diffstat (limited to 'recipes/libdvb/files/ldflags.patch')
-rw-r--r--recipes/libdvb/files/ldflags.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes/libdvb/files/ldflags.patch b/recipes/libdvb/files/ldflags.patch
new file mode 100644
index 0000000000..70a7ea6acb
--- /dev/null
+++ b/recipes/libdvb/files/ldflags.patch
@@ -0,0 +1,27 @@
+diff -urN libdvb-0.5.5.1/dvb-mpegtools/Makefile libdvb-0.5.5.1-superterrific/dvb-mpegtools/Makefile
+--- libdvb-0.5.5.1/dvb-mpegtools/Makefile 2009-11-29 19:40:06.000000000 -0500
++++ libdvb-0.5.5.1-superterrific/dvb-mpegtools/Makefile 2009-11-29 19:40:21.000000000 -0500
+@@ -33,19 +33,19 @@
+ dvbaudio
+
+ dvb-mpegtools_main: main.o
+- $(CXX) main.o $(LIBS) -o $@
++ $(CXX) main.o $(LDFLAGS) $(LIBS) -o $@
+
+ ctest: mainc.o
+ $(CC) $(COBJ) -o $@
+
+ dvb-mplex: $(MPLEXOBS)
+- $(CXX) $(MPLEXOBS) $(LIBS) -o $@
++ $(CXX) $(MPLEXOBS) $(LDFLAGS) $(LIBS) -o $@
+
+ dvbaudio: dvbaudio.o
+- $(CXX) dvbaudio.o $(LIBS) -ldvb -o $@
++ $(CXX) dvbaudio.o $(LDFLAGS) $(LIBS) -ldvb -o $@
+
+ audiofilter: audiofilter.o
+- $(CXX) audiofilter.o -o $@
++ $(CXX) audiofilter.o $(LDFLAGS) -o $@
+
+ %.o: %.cc
+ $(CXX) -c $(DCFLAGS) $(INCLUDES) $(DEFINES) $<