summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
author[email protected] <[email protected]>2018-06-22 23:31:22 +0200
committerMartinfx <[email protected]>2018-06-23 17:02:04 +0200
commit965cc8ab6fab12fdab1ddd78b9a8e5eb146f3282 (patch)
treec242e33754e8a8bc9d7c9f5da7cef867caf2a891
parent1630597f08590fd76f13440e9a3792e758b4c7d1 (diff)
downloadraylib-965cc8ab6fab12fdab1ddd78b9a8e5eb146f3282.tar.gz
raylib-965cc8ab6fab12fdab1ddd78b9a8e5eb146f3282.zip
Added support DragonFly os from BSD family
-rwxr-xr-xcmake/utils.cmake4
-rw-r--r--src/rglfw.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/cmake/utils.cmake b/cmake/utils.cmake
index 9a2b410f..7801a1cc 100755
--- a/cmake/utils.cmake
+++ b/cmake/utils.cmake
@@ -54,8 +54,8 @@ if(${PLATFORM} MATCHES "Desktop")
endif()
# Ugly crutch. Temporary workaround for #551
-if("${CMAKE_SYSTEM_NAME}" MATCHES "(Free|Net|Open)BSD")
- link_directories("/usr/local/lib")
+if("${CMAKE_SYSTEM_NAME}" MATCHES "(Free|Net|Open)BSD|DragonFly")
+ link_directories("${CMAKE_INSTALL_PREFIX}/lib")
endif()
if(CMAKE_SYSTEM_NAME STREQUAL Linux)
diff --git a/src/rglfw.c b/src/rglfw.c
index e1b5392e..50d606d4 100644
--- a/src/rglfw.c
+++ b/src/rglfw.c
@@ -37,7 +37,7 @@
#define _GLFW_X11
#endif
#endif
-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
#define _GLFW_X11
#endif
#if defined(__APPLE__)
@@ -91,7 +91,7 @@
#include "external/glfw/src/osmesa_context.c"
#endif
-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__) || defined(__DragonFly__)
#include "external/glfw/src/x11_init.c"
#include "external/glfw/src/x11_monitor.c"
#include "external/glfw/src/x11_window.c"