]> git.pld-linux.org Git - packages/flac.git/blame - x32.patch
- fix build on x32 arch
[packages/flac.git] / x32.patch
CommitLineData
85c00d19
JR
1--- flac-1.3.1/configure.ac~ 2014-12-25 12:11:41.000000000 +0000
2+++ flac-1.3.1/configure.ac 2014-12-25 12:28:28.561894846 +0000
3@@ -150,6 +150,7 @@
4 *-*-cygwin|*mingw*) OBJ_FORMAT=win32 ;;
5 *-*-darwin*) OBJ_FORMAT=macho ;;
6 *emx*) OBJ_FORMAT=aout ;;
7+ *gnux32*) OBJ_FORMAT=elfx32 ;;
8 *) OBJ_FORMAT=elf ;;
9 esac
10 AC_SUBST(OBJ_FORMAT)
11@@ -370,6 +371,12 @@
12 CPPFLAGS="$CPPFLAGS -DFLAC__USE_VISIBILITY_ATTR"
13 CFLAGS="$CFLAGS -fvisibility=hidden"
14 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
15+ fi
16+
17+ if test "$GCC_MAJOR_VERSION" -ge 4 && test "$OBJ_FORMAT" = elfx32; then
18+ CPPFLAGS="$CPPFLAGS -DFLAC__USE_VISIBILITY_ATTR"
19+ CFLAGS="$CFLAGS -fvisibility=hidden"
20+ CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
21 fi
22
23 if test "$GCC_MAJOR_VERSION" -ge 4 && test "$OBJ_FORMAT" = macho; then
24--- flac-1.3.1/src/libFLAC/ia32/nasm.h~ 2014-11-27 01:19:47.000000000 +0000
25+++ flac-1.3.1/src/libFLAC/ia32/nasm.h 2014-12-25 12:31:46.790820947 +0000
26@@ -50,6 +50,10 @@
27 %idefine code_section section .text align=16
28 %idefine data_section section .data align=32
29 %idefine bss_section section .bss align=32
30+%elifdef OBJ_FORMAT_elfx32
31+ %idefine code_section section .text align=16
32+ %idefine data_section section .data align=32
33+ %idefine bss_section section .bss align=32
34 %else
35 %error unsupported object format!
36 %endif
This page took 0.081879 seconds and 4 git commands to generate.