diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-02-13 21:41:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-02-13 21:41:11 +0000 |
commit | c8d60dada2ec8eb48b2d2b290cd6683ccec40e39 (patch) | |
tree | c44943ee0563a3fa957716de909fed683117fcb9 /app-crypt/dieharder/files/dieharder-3.31.1-cross-compile.patch | |
parent | 69051588e2f955485fe5d45d45e616bc60a2de57 (diff) |
gentoo (valentine's day) resync : 14.02.2021
Diffstat (limited to 'app-crypt/dieharder/files/dieharder-3.31.1-cross-compile.patch')
-rw-r--r-- | app-crypt/dieharder/files/dieharder-3.31.1-cross-compile.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/app-crypt/dieharder/files/dieharder-3.31.1-cross-compile.patch b/app-crypt/dieharder/files/dieharder-3.31.1-cross-compile.patch new file mode 100644 index 000000000000..18bbf659fc04 --- /dev/null +++ b/app-crypt/dieharder/files/dieharder-3.31.1-cross-compile.patch @@ -0,0 +1,57 @@ +From: Tom Hughes <tomhughes@chromium.org> +Fix cross-compilation by removing gsl header/library check (these are enforced +through ebuild DEPENDS) and using AC_C_BIGENDIAN instead of the non-standard +AC_C_ENDIAN macro which tries to execute code. +--- a/configure.ac ++++ b/configure.ac +@@ -108,48 +108,7 @@ + AC_SUBST(DIEHARDER_LIBS) + AC_SUBST(ACLOCAL_AMFLAGS) + +-#================================================================== +-# Checks for libraries, and headers. Test for dependency libraries +-# FIRST in reverse order that you need -lwhatever to appear on +-# compile line as it accumulates libraries to build e.g. +-# -lgsl -lgslcblas +-# for the SECOND test, required (in that order) to succeed. +-#================================================================== +-AC_CHECK_HEADER([gsl/gsl_sf_gamma.h],,[AC_MSG_ERROR([Couldn't find GSL headers. Please install the gsl-devel package.])]) +-AC_CHECK_LIB([gslcblas], [main],,[AC_MSG_ERROR([Couldn't find libgsl. Please install the gsl package.])]) +-AC_CHECK_LIB([gsl],[gsl_sf_gamma]) +- +- +-#================================================================== +-# Check if we're a little-endian or a big-endian system, needed by +-# brg_endian.h in the build of rng_threefish. This is a very +-# certain test, and therefore is checked FIRST in this header file. +-#================================================================== +-AC_DEFUN([AC_C_ENDIAN], +-[AC_CACHE_CHECK(for endianness, ac_cv_c_endian, +-[ +- AC_RUN_IFELSE( +- [AC_LANG_PROGRAM([], [dnl +- long val = 1; +- char *c = (char *) &val; +- exit(*c == 1); +- ]) +- ],[ +- ac_cv_c_endian=big +- ],[ +- ac_cv_c_endian=little +- ]) +-]) +-if test $ac_cv_c_endian = big; then +- AC_SUBST(LITTLE_ENDIAN,0) +-fi +-if test $ac_cv_c_endian = little; then +- AC_SUBST(LITTLE_ENDIAN,1) +-fi +-]) +- +-AC_C_ENDIAN +- ++AC_C_BIGENDIAN([AC_SUBST(LITTLE_ENDIAN,0)],[AC_SUBST(LITTLE_ENDIAN,1)]) + + #================================================================== + # Checks for typedefs, structures, and compiler characteristics. + |