From 37c06facda57af9bad68f50c18edfa22d6ef76f7 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 3 Mar 2015 15:51:01 +0100 Subject: Fix pkgconf file: escaping needed Due to the various processors going over the command, we need more escaping. 1) Make parses it, so $${libdir} becomes ${libdir} 2) 'shell' parses it for the 'echo command', whereas echo ${libdir} would be an empty string; escape it as \${libdir} to ensure we get what we want. Closes #312 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3c2e75b..2fbfe1b 100644 --- a/Makefile +++ b/Makefile @@ -157,8 +157,8 @@ $(PKGCONFNAME): hiredis.h @echo Name: hiredis >> $@ @echo Description: Minimalistic C client library for Redis. >> $@ @echo Version: $(HIREDIS_MAJOR).$(HIREDIS_MINOR).$(HIREDIS_PATCH) >> $@ - @echo Libs: -L$${libdir} -lhiredis >> $@ - @echo Cflags: -I$${includedir} -D_FILE_OFFSET_BITS=64 >> $@ + @echo Libs: -L\$${libdir} -lhiredis >> $@ + @echo Cflags: -I\$${includedir} -D_FILE_OFFSET_BITS=64 >> $@ install: $(DYLIBNAME) $(STLIBNAME) mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH) -- cgit v1.2.3