Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 418830 Details for
Bug 535784
media-libs/flac-1.3.1-r1 - ld: i386 architecture of input file `ia32/.libs/libFLAC-asm.a(cpu_asm.o)' is incompatible with i386:x64-32 output
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Detection of x32 build by predefined macros instead of compiler name
flac-1.3.1-x32.patch (text/plain), 1.44 KB, created by
Lukáš Ručka
on 2015-12-09 10:28:38 UTC
(
hide
)
Description:
Detection of x32 build by predefined macros instead of compiler name
Filename:
MIME Type:
Creator:
Lukáš Ručka
Created:
2015-12-09 10:28:38 UTC
Size:
1.44 KB
patch
obsolete
>--- configure.ac.dist 2015-12-09 09:10:25.740408191 +0100 >+++ configure.ac 2015-12-09 10:30:02.307126162 +0100 >@@ -100,23 +100,30 @@ dnl check for getopt in standard library > dnl AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] ) > AC_CHECK_FUNCS(getopt_long, [], []) > >-AC_CHECK_SIZEOF(void*,1) >- > asm_optimisation=no > case "$host_cpu" in > x86_64) >- if test $ac_cv_sizeof_voidp = 4 ; then >- # This must be a 32 bit user space running on 64 bit kernel so treat >- # this as ia32. >- cpu_ia32=true >- AC_DEFINE(FLAC__CPU_IA32) >- AH_TEMPLATE(FLAC__CPU_IA32, [define if building for ia32/i386]) >- else >- # x86_64 user space and kernel. >- cpu_x86_64=true >- AC_DEFINE(FLAC__CPU_X86_64) >- AH_TEMPLATE(FLAC__CPU_X86_64, [define if building for x86_64]) >- fi >+ AC_COMPILE_IFELSE( >+ AC_LANG_PROGRAM([], [[{ >+ #if ( defined __ILP32__ and defined __x86_64__ ) or defined __x86_64__ >+ return 0 >+ #else >+ #error "neither x32 nor amd64 binary build" >+ #fi >+ }]] >+ ), [ >+ # This must be a 32 bit user space running on 64 bit kernel so treat >+ # this as ia32. >+ cpu_ia32=true >+ AC_DEFINE(FLAC__CPU_IA32) >+ AH_TEMPLATE(FLAC__CPU_IA32, [define if building for ia32/i386]) >+ ], [ >+ # either x86_64 or x32 user space and kernel. >+ cpu_x86_64=true >+ AC_DEFINE(FLAC__CPU_X86_64) >+ AH_TEMPLATE(FLAC__CPU_X86_64, [define if building for x86_64]) >+ ] >+ ) > asm_optimisation=$asm_opt > ;; > i*86) >
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 535784
:
393312
|
393314
| 418830 |
418948
|
418950