Bläddra i källkod

Fix linux build

Daniele Bartolini 10 år sedan
förälder
incheckning
76c26df352
2 ändrade filer med 10 tillägg och 7 borttagningar
  1. 6 6
      genie/crown.lua
  2. 4 1
      third/openal/config.h

+ 6 - 6
genie/crown.lua

@@ -81,17 +81,17 @@ function crown_project(_name, _kind, _defines)
 
 
 			-- Fix this in GENie
 			-- Fix this in GENie
 			configuration { "debug", "x32", "linux-*" }
 			configuration { "debug", "x32", "linux-*" }
-				linkoptions { "-Lbin/debug", "-lopenal-debug-32", }
+				linkoptions { "-Lbin", "-lopenal-debug-32", }
 			configuration { "development", "x32", "linux-*" }
 			configuration { "development", "x32", "linux-*" }
-				linkoptions { "-Lbin/debug", "-lopenal-development-32", }
+				linkoptions { "-Lbin", "-lopenal-development-32", }
 			configuration { "release", "x32", "linux-*" }
 			configuration { "release", "x32", "linux-*" }
-				linkoptions { "-Lbin/debug", "-lopenal-release-32", }
+				linkoptions { "-Lbin", "-lopenal-release-32", }
 			configuration { "debug", "x64", "linux-*" }
 			configuration { "debug", "x64", "linux-*" }
-				linkoptions { "-Lbin/debug", "-lopenal-debug-64", }
+				linkoptions { "-Lbin", "-lopenal-debug-64", }
 			configuration { "development", "x64", "linux-*" }
 			configuration { "development", "x64", "linux-*" }
-				linkoptions { "-Lbin/debug", "-lopenal-development-64", }
+				linkoptions { "-Lbin", "-lopenal-development-64", }
 			configuration { "release", "x64", "linux-*" }
 			configuration { "release", "x64", "linux-*" }
-				linkoptions { "-Lbin/debug", "-lopenal-release-64", }
+				linkoptions { "-Lbin", "-lopenal-release-64", }
 
 
 			configuration { "vs*" }
 			configuration { "vs*" }
 				links { "openal", }
 				links { "openal", }

+ 4 - 1
third/openal/config.h

@@ -6,4 +6,7 @@
 	#define ALC_API __declspec(dllexport)
 	#define ALC_API __declspec(dllexport)
 	/* Define any available alignment declaration */
 	/* Define any available alignment declaration */
 	#define ALIGN(x) __declspec(align(x))
 	#define ALIGN(x) __declspec(align(x))
-#endif // _MSC_VER
+#else
+	#define AL_API  __attribute__((visibility("protected")))
+	#define ALC_API __attribute__((visibility("protected")))
+#endif // defined(_MSC_VER)