summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-03-19 18:11:28 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-03-19 18:11:28 +0000
commit16933ce845ac878f0b7a67eac8867452b0ab42c4 (patch)
treeef586fde8db5f63409671278cf50c52434227f24 /INSTALL
parent410298c206450f855b9f4708fefe00e5af51716d (diff)
downloadskalibs-16933ce845ac878f0b7a67eac8867452b0ab42c4.tar.xz
More standard support for cross-compilation (--host only, no --enable-cross)
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL37
1 files changed, 24 insertions, 13 deletions
diff --git a/INSTALL b/INSTALL
index 32c85a7..0aa3b7f 100644
--- a/INSTALL
+++ b/INSTALL
@@ -39,20 +39,30 @@ before the "make install" phase. It will shave a few bytes off them.
Controlling a build process via environment variables is a big and
dangerous hammer. You should try and pass flags to configure instead;
-nevertheless, the standard environment variables are recognized.
+nevertheless, a few standard environment variables are recognized.
- The value of the CROSS_COMPILE environment variable will prefix the
-building tools' names. The --enable-cross option is preferred, see
-"Cross-compilation" below.
-
If the CC environment variable is set, its value will override compiler
-detection by configure.
+detection by configure. The --host=HOST option will still add a HOST-
+prefix to the value of CC.
The values of CFLAGS, CPPFLAGS and LDFLAGS will be appended to flags
auto-detected by configure. To entirely override the flags set by
-configure instead, use make -e.
+configure instead, use make variables.
+
+
+* Make variables
+ --------------
+
+ You can invoke make with a few variables for more configuration.
- The Makefile supports the DESTDIR convention for staging.
+ CC, CFLAGS, CPPFLAGS, LDFLAGS, LDLIBS, AR, RANLIB, STRIP, INSTALL and
+CROSS_COMPILE can all be overridden on the make command line. This is
+an even bigger hammer than running ./configure with environment
+variables, so it is advised to only do this when it is the only way of
+obtaining the behaviour you want.
+
+ DESTDIR can be given on the "make install" command line in order to
+install to a staging directory.
* Shared libraries
@@ -90,9 +100,8 @@ configure with a precomputed sysdeps directory, containing valid
sysdeps values for your target.
Use the --with-sysdeps=DIR option to specify DIR as a sysdeps
-directory for your target. Also use the --enable-cross=PREFIX option
-to specify a cross-compiling PREFIX for your toolchain's binaries,
-or simply --enable-cross if your default toolchain is a cross-compiler.
+directory for your target. Also use the --host=HOST option, HOST being
+the triplet for your target.
If you know the peculiarities of your target system, you can build
a sysdeps directory by hand. However, a much easier, and recommended,
@@ -104,11 +113,13 @@ purposes are available at Aboriginal Linux: http://landley.net/aboriginal/
skarnet.org or on third-party sites.
Once you have gathered your sysdeps, for any skarnet.org package:
+ * make sure the binaries of your cross-toolchain (HOST-gcc, HOST-ld,
+HOST-ar, etc.) are accessible via your PATH environment variable
* give the correct --with-sysdeps option to ./configure
- * give the correct --enable-cross option
+ * give the correct --host option
* for --prefix, --bindir and other paths, always use the run-time path
* to install the cross-compiled package in a staging directory /your/stage,
- perform "make install DESTDIR=/your/stage/"
+ perform "make install DESTDIR=/your/staging/directory"
* The slashpackage convention