You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
qrscan: fix build with Xcode gcc
This commit is contained in:
committed by
Herby Gillot
parent
d5351282f2
commit
4c38605810
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user