diff --git a/Assets/libvbanext.dll.so b/Assets/libvbanext.dll.so new file mode 100644 index 0000000000..54610699b5 Binary files /dev/null and b/Assets/libvbanext.dll.so differ diff --git a/vbanext/instance.cpp b/vbanext/instance.cpp index f381b865f5..14ebc4c208 100644 --- a/vbanext/instance.cpp +++ b/vbanext/instance.cpp @@ -13537,7 +13537,11 @@ void operator delete(void *p) std::free(p); } +#ifdef _WIN32 #define EXPORT extern "C" __declspec(dllexport) +#elif __linux__ +#define EXPORT extern "C" +#endif // public interface follows EXPORT Gigazoid *Create() diff --git a/vbanext/mingw/Makefile b/vbanext/mingw/Makefile index e5556e477e..05f14773d1 100644 --- a/vbanext/mingw/Makefile +++ b/vbanext/mingw/Makefile @@ -1,7 +1,7 @@ CXX = g++ CXXFLAGS = -Wall -O3 -fpermissive -Wno-unused-but-set-variable \ -Wno-strict-aliasing -Wzero-as-null-pointer-constant -Wno-unused-variable \ - -Wno-parentheses -Wno-sign-compare -std=gnu++11 -fomit-frame-pointer -fno-exceptions + -Wno-parentheses -Wno-sign-compare -std=gnu++11 -fomit-frame-pointer -fno-exceptions -fPIC MACHINE = $(shell $(CXX) -dumpmachine) ifneq (,$(findstring i686,$(MACHINE)))