From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 2/4] INSTALL: Document 32bit and cross-compilation setup
Date: Thu, 14 May 2020 21:34:41 +0200 [thread overview]
Message-ID: <20200514193441.GA11518@dell5510> (raw)
In-Reply-To: <20200514184904.4537-3-pvorel@suse.cz>
Hi,
> Cross compiling
> ---------------
> -
> To cross compile, you must specify the correct variables when running configure.
> -e.g. CC, LDFLAGS, etc...
> +e.g. CC, LDFLAGS, etc.
> +For correct pkgconf / pkg-config detection you need to set
> +PKG_CONFIG_SYSROOT_DIR=$SYSROOT
> After configure has run, it will generate include/mk/config.mk. You can tweak
> settings in there if need be, but you should not specificy settings on the
> command-line when running make.
It'd be nice to have true cross-compilation test...
> +32 bit build on 64 bit machine
> +------------------------------
> +You need to set CFLAGS=-m32 LDFLAGS=-m32 and PKG_CONFIG_LIBDIR
> +
> +* RPM based distributions (openSUSE, Fedora, etc.)
> +PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig CFLAGS=-m32 LDFLAGS=-m32 ./configure
> +
> +* Debian / Ubuntu and derivates
> +PKG_CONFIG_LIBDIR=/usr/lib/i386-linux-gnu/pkgconfig CFLAGS=-m32 LDFLAGS=-m32 ./configure
I guess, we should set this variable in 32 bit build in travis CI (we have only 1
job, which uses Debian). It's not failing now, because it's not a minimal build.
Therefore we should have minimal 32 bit build (easiest way is to use openSUSE or
Fedora/CentOS as they don't install libtirpc 32bit).
Kind regards,
Petr
next prev parent reply other threads:[~2020-05-14 19:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-14 18:49 [LTP] [PATCH 0/4] Update installation docs Petr Vorel
2020-05-14 18:49 ` [LTP] [PATCH 1/4] INSTALL: Update requirements Petr Vorel
2020-05-14 18:49 ` [LTP] [PATCH 2/4] INSTALL: Document 32bit and cross-compilation setup Petr Vorel
2020-05-14 19:34 ` Petr Vorel [this message]
2020-05-15 7:45 ` Li Wang
2020-05-15 7:54 ` Petr Vorel
2020-05-14 18:49 ` [LTP] [PATCH 3/4] INSTALL: Remove uClinux docs Petr Vorel
2020-05-14 18:49 ` [LTP] [PATCH 4/4] doc: Remove links to README.mk-devel Petr Vorel
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=20200514193441.GA11518@dell5510 \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
/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