Discussion:
[libdvdcss-devel] build: Add -mwin32 to CFLAGS on Cygwin instead of globally defining WIN32
Diego Biurrun
2013-02-14 17:36:14 UTC
Permalink
libdvdcss | branch: master | Diego Biurrun <***@biurrun.de> | Thu Feb 14 17:43:46 2013 +0100| [043e7f53033b8ed8fd9b04f719e08c5cf23409e5] | committer: Diego Biurrun

build: Add -mwin32 to CFLAGS on Cygwin instead of globally defining WIN32

It's better to have gcc enable all Windows-related flags and adjust its
behavior in a predictable fashion, rather than do parts of it manually.
http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=043e7f53033b8ed8fd9b04f719e08c5cf23409e5
---

configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 261e614..206e124 100644
--- a/configure.ac
+++ b/configure.ac
@@ -56,7 +56,7 @@ case x"${host_os}" in
CFLAGS="${CFLAGS} -no-cpp-precomp"
;;
x*cygwin*)
- AC_DEFINE(WIN32, 1, Using Win32.)
+ CFLAGS="${CFLAGS} -mwin32"
;;
xos2*)
LDFLAGS="-Zbin-files"

Loading...