summaryrefslogtreecommitdiff
path: root/TODO
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2017-10-21 10:10:01 -0400
committerZack Weinberg <zackw@panix.com>2017-10-21 10:28:20 -0400
commit30b9fe849ecb84d49dda080617c14006fa7aab4f (patch)
tree158b18fc210802894f0356af34e4c9947de3edde /TODO
parent59b0b34434fea44ddd8a05f10fead14ce5947fc2 (diff)
downloadlibxcrypt-30b9fe849ecb84d49dda080617c14006fa7aab4f.tar.gz
libxcrypt-30b9fe849ecb84d49dda080617c14006fa7aab4f.tar.bz2
libxcrypt-30b9fe849ecb84d49dda080617c14006fa7aab4f.zip
Support for cross-compilation in the build scripts.
This involves grubbing around in the guts of Autoconf so it may be a bit fragile, but there doesn't seem to be a better or more official way to do it. There are two difficulties. When $(CC) is a cross-compiler, we also need to find a native compiler, $(CC_FOR_BUILD), to compile gen-des-tables with; Automake doesn't _really_ support this, and a bunch of configure tests have to be repeated, but it can be made to work. Also, the test driver needs to be taught to treat "exec format error" from the compiled tests as a skip rather than a fail. This has only been tested for cross-compilation from x86-linux to powerpc-linux; in particular there may still be bugs when $(BUILD_OBJEXT) and $(OBJEXT) are not the same, or when either $(BUILD_EXEEXT) or $(EXEEXT) is not the empty string. It may also not work with non-GNU Make. * Makefile.am: Use $(CC_FOR_BUILD) to build gen-des-tables. (AM_TESTS_ENVIRONMENT): Add $(CC) to set of exported environment variables. (LOG_COMPILER): Set to m4/skip-if-exec-format-error when cross-compiling. (EXTRA_DIST): Add m4/skip-if-exec-format-error. * configure.ac: Call AX_PROG_CC_FOR_BUILD. Add an AM_CONDITIONAL for $cross_compiling. * m4/zw_simple_warnings.m4: When cross-compiling, also determine the set of warnings flags usable with $CC_FOR_BUILD. * m4/ax_prog_cc_for_build.m4, m4/skip-if-exec-format-error: New files. * LICENSING, TODO: Update.
Diffstat (limited to 'TODO')
-rw-r--r--TODO1
1 files changed, 0 insertions, 1 deletions
diff --git a/TODO b/TODO
index f212fef..b548521 100644
--- a/TODO
+++ b/TODO
@@ -23,7 +23,6 @@ to-do list for libxcrypt
* Factor out all of the repetitive base64 code
* get rid of the de/serialization code in crypt-bcrypt.c that
still does dodgy things with type punning
- * Fix cross compilation (need to use `CC_FOR_BUILD` for alg-des-mktables)
* Attempt to determine the copyright holders and intended licensing
of the test suite
* Moar tests