Skip to content

Commit

Permalink
MFH: r399540
Browse files Browse the repository at this point in the history
- Add a workaround for a problem caused by clang

For some reason clang is breaking the code when openal-soft is built with
optimizations. If the file alBuffer.c is built with -O1 the problem don't
happens. See kcat/openal-soft#18
The problem seems to happen just on CURRENT due the clang version.

PR:		199488, 203818
Tested by:	ohartman@zedat.fu-berlin.de
Approved by:	mva
Approved by:	ports-secteam (feld)
  • Loading branch information
daniloegea committed Oct 19, 2015
1 parent 72ee3f8 commit b633695
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion audio/openal-soft/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PORTNAME= openal-soft
PORTVERSION= 1.16.0
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= http://kcat.strangesoft.net/openal-releases/

Expand Down
11 changes: 11 additions & 0 deletions audio/openal-soft/files/patch-OpenAL32_alBuffer.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- OpenAL32/alBuffer.c.orig 2015-09-21 20:22:13 UTC
+++ OpenAL32/alBuffer.c
@@ -1179,7 +1179,7 @@ static ALboolean DecomposeFormat(ALenum
{ AL_7POINT1_16_SOFT, FmtX71, FmtShort },
{ AL_7POINT1_32F_SOFT, FmtX71, FmtFloat },
};
- ALuint i;
+ volatile ALuint i;

for(i = 0;i < COUNTOF(list);i++)
{

0 comments on commit b633695

Please # to comment.