linamh/dev-util/hex2bin/files/hex2bin-gcc10.patch
2022-11-26 22:54:07 +01:00

18 lines
442 B
Diff

--- Hex2bin-2.5/Makefile.orig 2022-11-26 21:28:39.060476310 +0100
+++ Hex2bin-2.5/Makefile 2022-11-26 21:30:59.302317881 +0100
@@ -1,10 +1,11 @@
# Makefile hex2bin/mot2bin
-
-CPFLAGS = -std=c99 -O2 -Wall -pedantic
+CC=gcc
+CFLAGS= -fcommon
+CPFLAGS = -std=c99 -O2 -Wall -pedantic $(CFLAGS)
# Compile
%.o : %.c
- gcc -c $(CPFLAGS) $< -o $@
+ $(CC) -c $(CPFLAGS) $< -o $@
#WIN64_GCC = x86_64-w64-mingw32-gcc
WINDOWS = i686-w64-mingw32