Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 531320 Details for
Bug 583076
media-video/x264-encoder-0.0.20151011: Configure fails on endian test with LTO
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
new endian test patch for media-video/x264-encoder-0.0.20170701
endian-test.patch (text/plain), 1.23 KB, created by
tokiclover
on 2018-05-14 11:15:57 UTC
(
hide
)
Description:
new endian test patch for media-video/x264-encoder-0.0.20170701
Filename:
MIME Type:
Creator:
tokiclover
Created:
2018-05-14 11:15:57 UTC
Size:
1.23 KB
patch
obsolete
>--- a/configure 2018-05-14 13:06:45.048908319 +0200 >+++ b/configure 2018-05-14 12:55:02.526913502 +0200 >@@ -961,14 +961,16 @@ > # skip endianness check for Intel Compiler and MSVS, as all supported platforms are little. each have flags that will cause the check to fail as well > CPU_ENDIAN="little-endian" > if [ $compiler = GNU ]; then >- echo "int i[2] = {0x42494745,0}; double f[2] = {0x1.0656e6469616ep+102,0};" > conftest.c >- $CC $CFLAGS conftest.c -c -o conftest.o 2>/dev/null || die "endian test failed" >- if (${cross_prefix}strings -a conftest.o | grep -q BIGE) && (${cross_prefix}strings -a conftest.o | grep -q FPendian) ; then >- define WORDS_BIGENDIAN >- CPU_ENDIAN="big-endian" >- elif !(${cross_prefix}strings -a conftest.o | grep -q EGIB && ${cross_prefix}strings -a conftest.o | grep -q naidnePF) ; then >- die "endian test failed" >- fi >+ cat <<-EOF > conftest.c >+#include <stdint.h> >+#define IS_BIG_ENDIAN (*(uint16_t *)"\0\xff" < 0x100) >+int main(void) { return IS_BIG_ENDIAN; } >+EOF >+ $CC $CFLAGS -o conftest conftest.c || die "endian test failed" >+ ./conftest || { >+ define WORDS_BIGENDIAN >+ CPU_ENDIAN="big-endian" >+ } > fi > > if [ "$cli_libx264" = "system" -a "$shared" != "yes" ] ; then
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 583076
:
434324
|
434716
| 531320