pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
raylib: Compile with -fPIC
Module Name: pkgsrc-wip
Committed By: Charlotte Koch <dressupgeekout%gmail.com@localhost>
Pushed By: cfkoch
Date: Sat May 1 01:57:33 2021 -0700
Changeset: cdba3908319193ec261443a4d006d35c1dc72df6
Modified Files:
raylib/distinfo
Added Files:
raylib/patches/patch-cmake_CompilerFlags.cmake
Log Message:
raylib: Compile with -fPIC
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cdba3908319193ec261443a4d006d35c1dc72df6
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
raylib/distinfo | 1 +
raylib/patches/patch-cmake_CompilerFlags.cmake | 13 +++++++++++++
2 files changed, 14 insertions(+)
diffs:
diff --git a/raylib/distinfo b/raylib/distinfo
index 0e16135012..9c6756c321 100644
--- a/raylib/distinfo
+++ b/raylib/distinfo
@@ -4,3 +4,4 @@ SHA1 (raylib-3.7.0.tar.gz) = f5f7a8cc404b404abea85b8257672e3f8ff98b86
RMD160 (raylib-3.7.0.tar.gz) = 82307cbfaa5671f5a833b05a75456ea5db20e89b
SHA512 (raylib-3.7.0.tar.gz) = 42967cc3cbcc7901b5790f6cafe4c06599450002fa7b9f1af2b40459cb6dee38b6b6cb708141fa98c22f1f930d5abf3396c2b742034e2d2a60de6e58cff0a107
Size (raylib-3.7.0.tar.gz) = 40597097 bytes
+SHA1 (patch-cmake_CompilerFlags.cmake) = f60c352caee5fe59fb6176399bc522f850c4c26f
diff --git a/raylib/patches/patch-cmake_CompilerFlags.cmake b/raylib/patches/patch-cmake_CompilerFlags.cmake
new file mode 100644
index 0000000000..6150ab1b2e
--- /dev/null
+++ b/raylib/patches/patch-cmake_CompilerFlags.cmake
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Allow for static linking.
+--- cmake/CompilerFlags.cmake.orig 2021-04-26 09:00:33.000000000 -0700
++++ cmake/CompilerFlags.cmake 2021-05-01 01:51:08.410299439 -0700
+@@ -77,3 +77,7 @@
+ # https://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html
+ add_if_flag_compiles(-no-canonical-prefixes CMAKE_C_FLAGS)
+ endif()
++
++if("${CMAKE_SYSTEM_NAME}" STREQUAL "NetBSD")
++ add_if_flag_compiles(-fPIC CMAKE_C_FLAGS)
++endif()
Home |
Main Index |
Thread Index |
Old Index