aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/pcmciautils/pcmciautils-018/0001-fix-a-parallel-building-issue.patch
blob: 3125df481ce3141e02232cf1ea6481070f54e322 (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
33
34
35
36
37
38
39
40
41
From 5a793a1a9fb3477719aabf7e27ff22ed1acdf559 Mon Sep 17 00:00:00 2001
From: Roy Li <rongqing.li@windriver.com>
Date: Tue, 19 May 2015 15:54:24 +0800
Subject: [PATCH] fix a parallel building issue

Fixed:
|   src/lex_config.c:34:25: fatal error: yacc_config.h: No such file or directory
|
|    #include "yacc_config.h"
|                            ^
|   compilation terminated.

And:
Compiling lex_config.c.
  src/lex_config.l:34:25: fatal error: yacc_config.h: No such file or directory

Upstream-Status: Pending

there are two Makefile rules to generate lex_config.o, one is to generate
lex_config.o other is to generate src/lex_config.o, so we can remove one.
and add the needed dependence for lex_config.o


Signed-off-by: Roy Li <rongqing.li@windriver.com>
---
 Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: pcmciautils-018/Makefile
===================================================================
--- pcmciautils-018.orig/Makefile
+++ pcmciautils-018/Makefile
@@ -246,7 +246,7 @@ $(PCMCIA_SOCKET_STARTUP): $(LIBC) src/st
 	$(QUIET) $(LD) $(LDFLAGS) -o $@ $(CRT0) src/startup.o src/yacc_config.o src/lex_config.o $(LIB_OBJS) $(ARCH_LIB_OBJS)
 	$(QUIET) $(STRIPCMD) $@
 
-yacc_config.o lex_config.o: %.o: %.c
+yacc_config.o lex_config.o: %.o: %.c src/yacc_config.h
 	$(CC) -c -MD -O -pipe $(CPPFLAGS) $<
 
 debugtools: ccdv $(CBDUMP) $(CISDUMP)