From 0f625a86eee7b620b8f36ecbfad1408a9e346fc3 Mon Sep 17 00:00:00 2001 From: "L. Pereira" Date: Thu, 18 May 2023 18:10:01 -0700 Subject: [PATCH] Fix FREESTANDING install target When installing a FREESTANDING build, the check for an empty variable was not being honored because the empty string would evaluate to nothing. Put the variable expansion in quotes so that we have an empty string instead. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 194ef0d..74ea13c 100644 --- a/Makefile +++ b/Makefile @@ -215,7 +215,7 @@ install: all install -D -m644 $$i ${DESTDIR}${includedir}/$$destfn; \ done install -D -m644 ${LIBUCONTEXT_PC} ${DESTDIR}${pkgconfigdir}/${LIBUCONTEXT_PC} - if [ -n ${LIBUCONTEXT_POSIX_NAME} ]; then \ + if [ -n "${LIBUCONTEXT_POSIX_NAME}" ]; then \ install -D -m755 ${LIBUCONTEXT_POSIX_NAME} ${DESTDIR}${LIBUCONTEXT_POSIX_PATH}; \ install -D -m644 ${LIBUCONTEXT_POSIX_STATIC_NAME} ${DESTDIR}${LIBUCONTEXT_POSIX_STATIC_PATH}; \ fi