gentoo-ebuilds/dev-embedded/xa/files/xa-2.4.1-make.patch
Ionen Wolkens 6028d0afd2
dev-embedded/xa: adjust patch
Re-add bug link and remove context (context is not super useful
for this patch and it sometimes allows to rebase it less often,
albeit in this case it added a trivial -g on the CFLAGS line).

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2024-07-30 17:23:30 -04:00

28 lines
601 B
Diff

https://bugs.gentoo.org/722600
--- a/Makefile
+++ b/Makefile
@@ -4,2 +3,0 @@
-CC = gcc
-LD = gcc
@@ -8,2 +5,0 @@
-CFLAGS = -O2 -g
-LDFLAGS = -lc
@@ -32 +28 @@
-all: killxa xa uncpk
+all: xa uncpk
@@ -38 +34 @@
- (cd src && LD=${LD} CC="${CC} ${CFLAGS}" ${MAKE})
+ (cd src && ${MAKE})
@@ -44 +40 @@
- (cd misc && CC="${CC} ${CFLAGS}" ${MAKE})
+ (cd misc && ${MAKE})
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -5 +5 @@
-CFLAGS = -O2 -g
+CFLAGS := $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
--- a/src/Makefile
+++ b/src/Makefile
@@ -12 +12 @@
- ${LD} -o ../xa ${OBJ} ${LDFLAGS}
+ ${CC} ${LDFLAGS} -o ../xa ${OBJ}