irda-utils: add patch to use LDFLAGS (fixes QA error)
authorJeremy Lainé <jeremy.laine@m4x.org>
Wed, 8 Apr 2009 08:20:16 +0000 (08:20 +0000)
committerJeremy Lainé <jeremy.laine@m4x.org>
Wed, 8 Apr 2009 08:20:16 +0000 (08:20 +0000)
recipes/irda-utils/irda-utils/ldflags.patch [new file with mode: 0644]
recipes/irda-utils/irda-utils_0.9.16.bb

diff --git a/recipes/irda-utils/irda-utils/ldflags.patch b/recipes/irda-utils/irda-utils/ldflags.patch
new file mode 100644 (file)
index 0000000..bb4f5cd
--- /dev/null
@@ -0,0 +1,28 @@
+diff -urN irda-utils-0.9.16.orig/irattach/Makefile irda-utils-0.9.16/irattach/Makefile
+--- irda-utils-0.9.16.orig/irattach/Makefile   2004-03-31 23:55:41.000000000 +0200
++++ irda-utils-0.9.16/irattach/Makefile        2009-04-08 10:17:39.000000000 +0200
+@@ -53,10 +53,10 @@
+ all: $(TARGETS)
+ irattach: irattach.o util.o
+-      $(CC) $(CFLAGS) irattach.o util.o -o $@
++      $(CC) $(CFLAGS) $(LDFLAGS) irattach.o util.o -o $@
+ dongle_attach: dongle_attach.o
+-      $(CC) $(CFLAGS) dongle_attach.o -o $@
++      $(CC) $(CFLAGS) $(LDFLAGS) dongle_attach.o -o $@
+ .c.o:
+       $(CC) $(CFLAGS) $(INCLUDES) -c $<
+diff -urN irda-utils-0.9.16.orig/irdaping/Makefile irda-utils-0.9.16/irdaping/Makefile
+--- irda-utils-0.9.16.orig/irdaping/Makefile   2004-03-31 23:55:47.000000000 +0200
++++ irda-utils-0.9.16/irdaping/Makefile        2009-04-08 10:17:57.000000000 +0200
+@@ -52,7 +52,7 @@
+ all:: irdaping
+ irdaping: $(OBJS)
+-      $(CC) $(CFLAGS) $(OBJS) -o $@
++      $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@
+ .c.o:
+       $(CC) $(CFLAGS) $(INCLUDES) -c $<
index 19bcdf3..1d9d184 100644 (file)
@@ -3,11 +3,12 @@ IrDA allows communication over Infrared with other devices \
 such as phones and laptops."
 SECTION = "base"
 LICENSE = "GPL"
-PR = "r8"
+PR = "r9"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/irda/irda-utils-${PV}.tar.gz \
           file://configure.patch;patch=1 \
           file://m4.patch;patch=1 \
+          file://ldflags.patch;patch=1 \
           file://init"
 
 export SYS_INCLUDES="-I${STAGING_INCDIR}"