1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-22 08:06:25 +00:00
Lakka-LibreELEC/packages/sysutils/rewritefs/patches/rewritefs-build-fix.patch
GavinDarkglider 4f8d2a57e9
WIP - Add Support for Ayn Odin (#1713)
* Initial fully buildable/bootable Odin Support

* Rework NX-Boot to FAT32 Boot for shared usage between switch and odin

* Move shared packages from switch/odin to main packages folder
2023-01-21 16:11:38 +01:00

35 lines
975 B
Diff

diff --git a/Makefile b/Makefile
index c7f3daa..a781624 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
-PREFIX = /usr/local
+# PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man
-CFLAGS = -Wall -O2 -DHAVE_FDATASYNC=1 -DHAVE_SETXATTR=1
-LDFLAGS =
+CFLAGS += -Wall -O2 -DHAVE_FDATASYNC=1
+LDFLAGS +=
FUSE_CFLAGS = $(shell pkg-config --cflags fuse)
FUSE_LIBS = $(shell pkg-config --libs fuse)
@@ -10,13 +10,15 @@ FUSE_LIBS = $(shell pkg-config --libs fuse)
PCRE_CFLAGS = $(shell pkg-config --cflags libpcre)
PCRE_LIBS = $(shell pkg-config --libs libpcre)
+CC=$(CROSS_COMPILE)gcc
+
all: rewritefs
rewritefs: rewritefs.o rewrite.o
- gcc rewritefs.o rewrite.o $(FUSE_LIBS) $(PCRE_LIBS) $(LDFLAGS) -o $@
+ $(CC) rewritefs.o rewrite.o $(FUSE_LIBS) $(PCRE_LIBS) $(LDFLAGS) -o $@
%.o: %.c
- gcc $(CFLAGS) $(FUSE_CFLAGS) $(PCRE_CFLAGS) -c $< -o $@
+ $(CC) $(CFLAGS) $(FUSE_CFLAGS) $(PCRE_CFLAGS) -c $< -o $@
clean:
rm -f rewritefs *.o