mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-31 10:46:16 +00:00
audio/alsa-lib: unbreak clang build on powerpc64
fatal error: error in backend: A @@ version cannot be undefined Reported by: Mark Millard Submitted by: dim Obtained from: upstream
This commit is contained in:
parent
f31f5d93bd
commit
9248d607a2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=481945
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= alsa-lib
|
||||
PORTVERSION= 1.1.2
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= ftp://ftp.alsa-project.org/pub/lib/ \
|
||||
GENTOO
|
||||
|
59
audio/alsa-lib/files/patch-include_alsa-symbols.h
Normal file
59
audio/alsa-lib/files/patch-include_alsa-symbols.h
Normal file
@ -0,0 +1,59 @@
|
||||
commit 3bad0a21b4d13d8d10691f382c836897fa7a7cb9
|
||||
Author: Breno Leitao <leitao@debian.org>
|
||||
Date: Wed Feb 22 16:45:00 2017 -0300
|
||||
|
||||
Drop ppc64-specific workaround for versioned symbols
|
||||
|
||||
Currently aserver fails to build when using parameter
|
||||
--without-versioned, due to an workaround for ppc64
|
||||
(06221f86d207cb33ddd4867ca5301eeb247c4400). This workaround is
|
||||
not required anymore on the ppc64 ABI v2, and, in fact is breaking the
|
||||
compilation. Reverting this commit
|
||||
|
||||
Signed-off-by: Breno Leitao <leitao@debian.org>
|
||||
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
||||
|
||||
--- include/alsa-symbols.h.orig 2016-08-02 17:48:38 UTC
|
||||
+++ include/alsa-symbols.h
|
||||
@@ -29,19 +29,10 @@
|
||||
#define INTERNAL_CONCAT2_2(Pre, Post) Pre##Post
|
||||
#define INTERNAL(Name) INTERNAL_CONCAT2_2(__, Name)
|
||||
|
||||
-#ifdef __powerpc64__
|
||||
-# define symbol_version(real, name, version) \
|
||||
- __asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@" #version); \
|
||||
- __asm__ (".symver ." ASM_NAME(#real) ",." ASM_NAME(#name) "@" #version)
|
||||
-# define default_symbol_version(real, name, version) \
|
||||
- __asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@@" #version); \
|
||||
- __asm__ (".symver ." ASM_NAME(#real) ",." ASM_NAME(#name) "@@" #version)
|
||||
-#else
|
||||
# define symbol_version(real, name, version) \
|
||||
__asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@" #version)
|
||||
# define default_symbol_version(real, name, version) \
|
||||
__asm__ (".symver " ASM_NAME(#real) "," ASM_NAME(#name) "@@" #version)
|
||||
-#endif
|
||||
|
||||
#ifdef USE_VERSIONED_SYMBOLS
|
||||
#define use_symbol_version(real, name, version) \
|
||||
@@ -50,13 +41,6 @@
|
||||
default_symbol_version(real, name, version)
|
||||
#else
|
||||
#define use_symbol_version(real, name, version) /* nothing */
|
||||
-#ifdef __powerpc64__
|
||||
-#define use_default_symbol_version(real, name, version) \
|
||||
- __asm__ (".weak " ASM_NAME(#name)); \
|
||||
- __asm__ (".weak ." ASM_NAME(#name)); \
|
||||
- __asm__ (".set " ASM_NAME(#name) "," ASM_NAME(#real)); \
|
||||
- __asm__ (".set ." ASM_NAME(#name) ",." ASM_NAME(#real))
|
||||
-#else
|
||||
#if defined(__alpha__) || defined(__mips__)
|
||||
#define use_default_symbol_version(real, name, version) \
|
||||
__asm__ (".weak " ASM_NAME(#name)); \
|
||||
@@ -65,7 +49,6 @@
|
||||
#define use_default_symbol_version(real, name, version) \
|
||||
__asm__ (".weak " ASM_NAME(#name)); \
|
||||
__asm__ (".set " ASM_NAME(#name) "," ASM_NAME(#real))
|
||||
-#endif
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user