This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/app-emulation/dxvk/files/9999-add_compiler_flags.patch
tastytea 25a00b36ba
All checks were successful
continuous-integration/drone/push Build is passing
app-emulation/dxvk: Update live ebuild, revbump to r4.
2020-04-21 18:13:08 +02:00

48 lines
1.4 KiB
Diff

From 3dc43a4640a9680f453c3f3ec37a966302527a07 Mon Sep 17 00:00:00 2001
From: tastytea <tastytea@tastytea.de>
Date: Tue, 21 Apr 2020 18:10:04 +0200
Subject: [PATCH] Add compiler flags.
---
build-win32.txt | 8 ++++----
build-win64.txt | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/build-win32.txt b/build-win32.txt
index 97ec8a35..e2e2e3f9 100644
--- a/build-win32.txt
+++ b/build-win32.txt
@@ -5,10 +5,10 @@ ar = 'i686-w64-mingw32-ar'
strip = 'i686-w64-mingw32-strip'
[properties]
-c_args=['-msse', '-msse2']
-cpp_args=['-msse', '-msse2']
-c_link_args = ['-static', '-static-libgcc']
-cpp_link_args = ['-static', '-static-libgcc', '-static-libstdc++']
+c_args=@CFLAGS@ + ['-msse', '-msse2']
+cpp_args=@CXXFLAGS@ + ['-msse', '-msse2']
+c_link_args = @LDFLAGS@ + ['-static', '-static-libgcc']
+cpp_link_args = @LDFLAGS@ + ['-static', '-static-libgcc', '-static-libstdc++']
needs_exe_wrapper = true
[host_machine]
diff --git a/build-win64.txt b/build-win64.txt
index 2a7fbee3..cb8bdb00 100644
--- a/build-win64.txt
+++ b/build-win64.txt
@@ -5,8 +5,8 @@ ar = 'x86_64-w64-mingw32-ar'
strip = 'x86_64-w64-mingw32-strip'
[properties]
-c_link_args = ['-static', '-static-libgcc']
-cpp_link_args = ['-static', '-static-libgcc', '-static-libstdc++']
+c_link_args = @LDFLAGS@ + ['-static', '-static-libgcc']
+cpp_link_args = @LDFLAGS@ + ['-static', '-static-libgcc', '-static-libstdc++']
needs_exe_wrapper = true
[host_machine]
--
2.25.3