linux-nfc.lists.01.org archive mirror
 help / color / mirror / Atom feed
* [linux-nfc] [neard][PATCH] build: fix missing pkglibdir substitute in neard.pc
@ 2021-08-04 11:01 Krzysztof Kozlowski
  2021-08-07 22:05 ` [linux-nfc] " Mark Greer
  0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2021-08-04 11:01 UTC (permalink / raw)
  To: linux-nfc; +Cc: Krzysztof Kozlowski

The pkglibdir is used by neard.pc.in (so by autoconf) however the
automake defines it, not autoconf.  Add early definition of pkglibdir so
substitute in neard.pc.in will work correctly.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index c1fdc44ae02d..ffe453049939 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,6 +15,10 @@ if (test "${libdir}" = '${exec_prefix}/lib'); then
 	libdir='${prefix}/lib'
 fi
 
+# pkglibdir is defined by automake but autoconf parses the neard.pc.in
+# which uses pkglibdir, therefore define it manually in autoconf.
+AC_SUBST([pkglibdir], ["\${libdir}/${PACKAGE_NAME}"])
+
 plugindir='${pkglibdir}/plugins'
 se_plugindir='${pkglibdir}/plugins-se'
 AC_SUBST(plugindir)
-- 
2.30.2
_______________________________________________
Linux-nfc mailing list -- linux-nfc@lists.01.org
To unsubscribe send an email to linux-nfc-leave@lists.01.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [linux-nfc] Re: [neard][PATCH] build: fix missing pkglibdir substitute in neard.pc
  2021-08-04 11:01 [linux-nfc] [neard][PATCH] build: fix missing pkglibdir substitute in neard.pc Krzysztof Kozlowski
@ 2021-08-07 22:05 ` Mark Greer
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Greer @ 2021-08-07 22:05 UTC (permalink / raw)
  To: Krzysztof Kozlowski; +Cc: linux-nfc

On Wed, Aug 04, 2021 at 01:01:45PM +0200, Krzysztof Kozlowski wrote:
> The pkglibdir is used by neard.pc.in (so by autoconf) however the
> automake defines it, not autoconf.  Add early definition of pkglibdir so
> substitute in neard.pc.in will work correctly.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
> ---

Applied.

Thank you.

Mark
--
_______________________________________________
Linux-nfc mailing list -- linux-nfc@lists.01.org
To unsubscribe send an email to linux-nfc-leave@lists.01.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-07 22:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-04 11:01 [linux-nfc] [neard][PATCH] build: fix missing pkglibdir substitute in neard.pc Krzysztof Kozlowski
2021-08-07 22:05 ` [linux-nfc] " Mark Greer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).