summaryrefslogtreecommitdiffstats
path: root/contrib/x265_10bit/module.defs
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2019-01-07 21:01:30 -0500
committerBradley Sepos <[email protected]>2019-01-19 14:14:10 -0500
commit4f38d4782fd9d192cc3c5d3cce691990877ca64d (patch)
treefa7e55a87d2906ed5443b9c657705c929e1362a6 /contrib/x265_10bit/module.defs
parent8c7c73ca5fdc8ba448b5074326454d0dad9067f7 (diff)
contrib: Update x265 cross compilation directives.
Necessary for cross compiling with gcc 8.
Diffstat (limited to 'contrib/x265_10bit/module.defs')
-rw-r--r--contrib/x265_10bit/module.defs8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/x265_10bit/module.defs b/contrib/x265_10bit/module.defs
index 12bbdedaa..b7fa93d35 100644
--- a/contrib/x265_10bit/module.defs
+++ b/contrib/x265_10bit/module.defs
@@ -28,6 +28,14 @@ endif
ifeq (1,$(BUILD.cross))
ifeq (mingw,$(BUILD.system))
X265_10.CONFIGURE.extra += -DWIN32=ON
+ X265_10.CONFIGURE.extra += -DCMAKE_SYSTEM_NAME=Windows
+ X265_10.CONFIGURE.extra += -DCMAKE_C_COMPILER=$(X265_10.GCC.gcc)
+ X265_10.CONFIGURE.extra += -DCMAKE_C_FLAGS="-static-libgcc -static-libstdc++ -static"
+ X265_10.CONFIGURE.extra += -DCMAKE_SHARED_LIBRARY_LINK_C_FLAGS="-static-libgcc -static-libstdc++ -static"
+ X265_10.CONFIGURE.extra += -DCMAKE_CXX_COMPILER=$(X265_10.GCC.gxx)
+ X265_10.CONFIGURE.extra += -DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -static"
+ X265_10.CONFIGURE.extra += -DCMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS="-static-libgcc -static-libstdc++ -static"
+ X265_10.CONFIGURE.extra += -DCMAKE_RC_COMPILER=$(BUILD.cross.prefix)windres
endif
X265_10.CONFIGURE.args.host = -DCMAKE_SYSTEM_NAME="$(X265_10.CONFIGURE.host)"
X265_10.CONFIGURE.args.build = -DCMAKE_HOST_SYSTEM="$(X265_10.CONFIGURE.build)"