-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android build issues #475
Comments
How would you like to see this fixed? Do you think FLAC should make certain nasm is really nasm? |
Either that, or support yasm properly too: As far as I can see, yasm supports the hidden attribute (the oldest I looked was .0.5.0 from 2006), and they define |
The following works for me on linux, using yasm-1.3.0 and nasm-2.12.02 diff --git a/src/libFLAC/ia32/nasm.h b/src/libFLAC/ia32/nasm.h
index cdb8bf5..b98f4b5 100644
--- a/src/libFLAC/ia32/nasm.h
+++ b/src/libFLAC/ia32/nasm.h
@@ -68,7 +68,9 @@
%ifdef FLAC__PUBLIC_NEEDS_UNDERSCORE
global _%1
%else
- %if __NASM_MAJOR__ >= 2
+ %ifdef __YASM_MAJOR__
+ global %1:function hidden
+ %elif __NASM_MAJOR__ >= 2
global %1:function hidden
%else
global %1 |
It comes with some incompatibility with win32 output, though:
|
I really prefer just getting #452 in. I suppose that would fix this issue too? |
Sure. |
We hit an issue building for android using cmake with x86 asm enabled
in SDL_mixer. Apparently, android toolchain advertises NASM as yasm,
and apparently yasm doesn't define
__NASM_MAJOR__
and errors out.The original discussion is at libsdl-org/SDL_mixer#457 (comment)
Here is the error -- after removing
-mstackrealign
which was anothersource of error:
I know there is the intention of asm removal (#452), but it would be nice if
this is resolved until that time.
CC: @madebr
The text was updated successfully, but these errors were encountered: