summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDominique Leuenberger <dimstar@opensuse.org>2015-03-03 15:51:01 +0100
committerMatt Stancliff <matt@genges.com>2015-03-03 08:12:49 -0800
commit37c06facda57af9bad68f50c18edfa22d6ef76f7 (patch)
tree31a55c17bec0122a6722fe97c94726454669787b /Makefile
parent27076a3e6d60f3c98d116df5d6b7e1bfdd5d970b (diff)
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
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)