qrscan: fix build with Xcode gcc

This commit is contained in:
Sergey Fedorov
2024-08-15 23:16:37 +08:00
committed by Herby Gillot
parent d5351282f2
commit 4c38605810
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -28,6 +28,9 @@ depends_lib-append path:lib/pkgconfig/libjpeg.pc:libjpeg-turbo \
port:libpng \
port:libquirc
# options.c: error: for loop initial declaration used outside C99 mode
compiler.c_standard 1999
use_parallel_build no
patchfiles-append patch-Makefile.diff
+1 -1
View File
@@ -20,7 +20,7 @@ Patch Makefile to use existing installation of libquirc
-CFLAGS += -I$(QUIRC) $(shell $(PKG_CONFIG) --cflags --static libpng libjpeg)
-LDFLAGS += -lz -lm
+CFLAGS += $(shell $(PKG_CONFIG) --cflags --static libpng libjpeg)
+CFLAGS += -std=c99 $(shell $(PKG_CONFIG) --cflags --static libpng libjpeg)
+LDFLAGS += -lz -lm -lquirc
ifeq ($(shell uname -s),Darwin)
GROUP = staff