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
This commit is contained in:
Dominique Leuenberger 2015-03-03 15:51:01 +01:00 committed by Matt Stancliff
parent 27076a3e6d
commit 37c06facda
1 changed files with 2 additions and 2 deletions

View File

@ -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)