mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-07-17 06:19:48 +02:00
Use pkg-config for compiler options.
Fix some issues with the image2pdf example code.
This commit is contained in:
@ -14,8 +14,8 @@
|
||||
# Common options
|
||||
CFLAGS = -g $(CPPFLAGS)
|
||||
#CFLAGS = -g -fsanitize=address $(CPPFLAGS)
|
||||
CPPFLAGS = -I.. -I/usr/local/include
|
||||
LIBS = -L.. -L/usr/local/lib -lpdfio -lz -lm
|
||||
CPPFLAGS = -I.. $(shell PKG_CONFIG_PATH="..:$(PKG_CONFIG_PATH)" pkg-config pdfio --cflags)
|
||||
LIBS = -L.. $(shell PKG_CONFIG_PATH="..:$(PKG_CONFIG_PATH)" pkg-config pdfio --libs)
|
||||
|
||||
|
||||
# Targets
|
||||
|
Reference in New Issue
Block a user