summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/aegisub/files/aegisub-3.0.4-respect-user-compiler-flags.patch')
-rw-r--r--media-video/aegisub/files/aegisub-3.0.4-respect-user-compiler-flags.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/media-video/aegisub/files/aegisub-3.0.4-respect-user-compiler-flags.patch b/media-video/aegisub/files/aegisub-3.0.4-respect-user-compiler-flags.patch
new file mode 100644
index 000000000000..80e1eb9bde19
--- /dev/null
+++ b/media-video/aegisub/files/aegisub-3.0.4-respect-user-compiler-flags.patch
@@ -0,0 +1,30 @@
+diff --git a/aegisub/configure.ac b/aegisub/configure.ac
+index d961bd6..8922042 100644
+--- a/aegisub/configure.ac
++++ b/aegisub/configure.ac
+@@ -157,23 +157,17 @@ AS_IF([test x$enable_compiler_flags != xno], [
+ AC_C_FLAG([-Wextra],[AC_C_FLAG([-W])])
+ AC_C_FLAG([-Wno-unused-parameter])
+ AC_C_FLAG([-std=gnu99])
+- AC_C_FLAG([-pipe])
+- AC_C_FLAG([-g])
+ AC_CXX_FLAG([-Wall])
+ AC_CXX_FLAG([-Wextra],[AC_CXX_FLAG([-W])])
+ AC_CXX_FLAG([-Wno-unused-parameter])
+ AC_CXX_FLAG([-Wno-long-long])
+- AC_CXX_FLAG([-fno-strict-aliasing])
+- AC_CXX_FLAG([-pipe])
+- AC_CXX_FLAG([-g])
+
+ # -O* messes with debugging.
+ AS_IF([test x$enable_debug = xyes], [
+ AC_C_FLAG([-O0])
++ AC_C_FLAG([-g])
+ AC_CXX_FLAG([-O0])
+- ], [
+- AC_C_FLAG([-O2])
+- AC_CXX_FLAG([-O2])
++ AC_CXX_FLAG([-g])
+ ])
+ ])
+