Browse Source

Merge pull request #1167 from Skytrias/patch-1

raylib linux - add system dependencies
Jeroen van Rijn 4 years ago
parent
commit
1012055ba9
1 changed files with 8 additions and 2 deletions
  1. 8 2
      vendor/raylib/raylib.odin

+ 8 - 2
vendor/raylib/raylib.odin

@@ -18,7 +18,13 @@ when ODIN_OS == "windows" {
 		"system:Shell32.lib",
 	}
 }
-when ODIN_OS == "linux"  { foreign import lib "linux/libraylib.a" }
+when ODIN_OS == "linux"  { 
+	foreign import lib { 
+		"linux/libraylib.a",
+		"system:dl",
+		"system:pthread",
+	}
+}
 when ODIN_OS == "darwin" { foreign import lib "macos/libraylib.a" }
 
 VERSION :: "3.7"
@@ -1393,4 +1399,4 @@ foreign lib {
 	SetAudioStreamVolume            :: proc(stream: AudioStream, volume: f32) ---                        // Set volume for audio stream (1.0 is max level)
 	SetAudioStreamPitch             :: proc(stream: AudioStream, pitch: f32) ---                         // Set pitch for audio stream (1.0 is base level)
 	SetAudioStreamBufferSizeDefault :: proc(size: c.int) ---                                             // Default size for new audio streams
-}
+}