mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Christian Melki <christian.melki@t2data.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] pre/Rules.make: Let CMAKE_INSTALL_LIBDIR be relative, as per spec.
Date: Mon,  9 Aug 2021 10:36:21 +0200	[thread overview]
Message-ID: <20210809083621.3676-1-christian.melki@t2data.com> (raw)

This means that packages that assume that this variable is absolute
will have to be modified.
Adding something like -DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR),
after CROSS_CMAKE_USR to your CONF_OPT will probably suffice.

Signed-off-by: Christian Melki <christian.melki@t2data.com>
---
 rules/pre/Rules.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/pre/Rules.make b/rules/pre/Rules.make
index 54a677c47..0943a51b7 100644
--- a/rules/pre/Rules.make
+++ b/rules/pre/Rules.make
@@ -233,7 +233,7 @@ CROSS_AUTOCONF_ROOT := $(CROSS_AUTOCONF_SYSROOT_ROOT) $(CROSS_AUTOCONF_ARCH)
 
 CROSS_CMAKE_USR	 := \
 	-DCMAKE_INSTALL_PREFIX=/usr \
-	-DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR) \
+	-DCMAKE_INSTALL_LIBDIR=$(CROSS_LIB_DIR) \
 	-DCMAKE_INSTALL_SYSCONFDIR=/etc \
 	-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
 	-DCMAKE_TOOLCHAIN_FILE='${PTXDIST_CMAKE_TOOLCHAIN_TARGET}'
-- 
2.32.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


             reply	other threads:[~2021-08-09  8:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-09  8:36 Christian Melki [this message]
2021-08-10  5:45 ` Denis Osterland-Heim
2021-08-25 14:58   ` Alexander Dahl
2021-10-07 10:18 ` [ptxdist] [APPLIED] " Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210809083621.3676-1-christian.melki@t2data.com \
    --to=christian.melki@t2data.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox