diff options
Diffstat (limited to 'recipes-devtools/utp-com/utp-com/0001-Fix-Makefile-for-crosscompilation.patch')
-rw-r--r-- | recipes-devtools/utp-com/utp-com/0001-Fix-Makefile-for-crosscompilation.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes-devtools/utp-com/utp-com/0001-Fix-Makefile-for-crosscompilation.patch b/recipes-devtools/utp-com/utp-com/0001-Fix-Makefile-for-crosscompilation.patch new file mode 100644 index 00000000..5db050c1 --- /dev/null +++ b/recipes-devtools/utp-com/utp-com/0001-Fix-Makefile-for-crosscompilation.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | --- a/makefile | ||
2 | +++ b/makefile | ||
3 | @@ -1,10 +1,12 @@ | ||
4 | -CC=gcc | ||
5 | -CFLAGS=-I. -Wall -O2 | ||
6 | -DEPS= | ||
7 | +CC ?= gcc | ||
8 | +CFLAGS ?= -I. -Wall -O2 | ||
9 | +LDFLAGS ?= | ||
10 | +DEPS ?= | ||
11 | + | ||
12 | OBJ=utp_com.o | ||
13 | |||
14 | %.o: %.c $(DEPS) | ||
15 | $(CC) -c -o $@ $< $(CFLAGS) | ||
16 | |||
17 | utp_com: $(OBJ) | ||
18 | - gcc -o $@ $^ $(CFLAGS) | ||
19 | + $(CC) -o $@ $^ $(LDFLAGS) | ||