summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/openjade/openjade-1.3.2/fix-regex.patch
blob: 6b40afdad8cb5f9390d51ac28c4a3e4edbb114fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 55f6fd8f1958aa36584eefeecce782a505963c88 Mon Sep 17 00:00:00 2001
From: benvm <benvm@yow-gmoffatt-lx2.wrs.com>
Date: Wed, 9 Jan 2013 12:14:06 -0500
Subject: [PATCH] Fix Makefile regular expression

This patch modifies a regular expression within a Makefile to stop builds
from failing in the case where the path contains the characters ".a".

Upstream-Status: Submitted

Signed-off-by: Kai Kang <kai.kang@windriver.com>

---
 Makefile.prog.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile.prog.in b/Makefile.prog.in
index 76310c9..44c3534 100644
--- a/Makefile.prog.in
+++ b/Makefile.prog.in
@@ -12,7 +12,7 @@ LINKFLAGS = @LINKFLAGS@
 
 ALL_LIBS = $(XLIBS) $(LIBS)
 Makefile.lt:
-	echo 'LT_LIBS='`echo $(ALL_LIBS)|sed 's/\.a/.la/g'` >Makefile.lt
+	echo 'LT_LIBS='`echo $(ALL_LIBS) | sed 's/\.a\s/\.la /g' | sed s/\.a$$/\.la/` > Makefile.lt
 
 PROG:=$(shell echo "$(PROG)" | sed '@program_transform_name@')
 
-- 
1.7.0.4