summaryrefslogtreecommitdiffstats
path: root/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0002-makefile-fix-linking-flags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0002-makefile-fix-linking-flags.patch')
-rw-r--r--meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0002-makefile-fix-linking-flags.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0002-makefile-fix-linking-flags.patch b/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0002-makefile-fix-linking-flags.patch
new file mode 100644
index 0000000000..cf4de18a79
--- /dev/null
+++ b/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0002-makefile-fix-linking-flags.patch
@@ -0,0 +1,31 @@
1From b4ff5886797e72d1c21da43261ca7648412f3186 Mon Sep 17 00:00:00 2001
2From: Vyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com>
3Date: Mon, 23 May 2022 19:53:21 +0200
4Subject: [PATCH] makefile: fix linking flags
5
6LDLIBS should be placed at the end according to
7https://www.gnu.org/software/make/manual/html_node/Catalogue-of-Rules.html
8
9Signed-off-by: Vyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com>
10---
11 makefile | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14diff --git a/makefile b/makefile
15index fb1bed4..038c7ce 100644
16--- a/makefile
17+++ b/makefile
18@@ -1,11 +1,11 @@
19 CFLAGS = -Wall -std=c99
20-LFLAGS = -lm
21+LDLIBS = -lm
22 CC = gcc
23
24 all: overlay
25
26 overlay: main.o logic.o sh.o
27- $(CC) $(LFLAGS) main.o logic.o sh.o -o overlay
28+ $(CC) main.o logic.o sh.o -o overlay $(LDLIBS)
29
30 main.o: main.c logic.h
31 $(CC) $(CFLAGS) -c main.c