Port Gambatte

This commit is contained in:
YoshiRulz 2019-10-25 22:07:14 +10:00
parent b5d188ad5e
commit ada256b0f1
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
3 changed files with 5 additions and 1 deletions

BIN
Assets/libgambatte.dll.so Normal file

Binary file not shown.

View File

@ -11,7 +11,7 @@ else
$(error Unknown arch)
endif
CXXFLAGS = -Wall -Iinclude -Isrc -O3 -std=c++11 -fno-exceptions -flto
CXXFLAGS = -Wall -Iinclude -Isrc -O3 -std=c++11 -fno-exceptions -flto -fPIC
TARGET = libgambatte.dll
LDFLAGS_32 = -static -static-libgcc -static-libstdc++
LDFLAGS_64 =

View File

@ -21,6 +21,10 @@
// these are all documented on the C# side
#ifdef _WIN32
#define GBEXPORT extern "C" __declspec(dllexport)
#elif __linux__
#define GBEXPORT extern "C"
#endif
#endif