Commit Graph

8068 Commits

Author SHA1 Message Date
Moritz Bunkus c4269a5579 sdl_sound: fix test program compilation with gcc >= 6
gcc 6 has added a diagnostic under `-pedantic` that emits a warning
whenever an enumerator value is not a constant integer
expression. This applies to the expression "1 << 31", too, as [1]
explains: that shifts the bit into the sign bit, and therefore it's
not constant.

This warning combined with `-Werror` means that compilation of the
test program fails.

This patch implements the workaround mentioned in [1].

Actual error message:

```
'x86_64-w64-mingw32.static-gcc' -W -Wall -Werror -std=c99 -pedantic '/home/mosu/prog/video/mingw/cross/src/sdl_sound-test.c' -o '/home/mosu/prog/video/mingw/cross/usr/x86_64-w64-mingw32.static/bin/test-sdl_sound.exe' `'x86_64-w64-mingw32.static-pkg-config' SDL_sound --cflags --libs`
In file included from /home/mosu/prog/video/mingw/cross/src/sdl_sound-test.c:11:0:
/home/mosu/prog/video/mingw/cross/usr/x86_64-w64-mingw32.static/include/SDL/SDL_sound.h:117:32:
error: enumerator value for 'SOUND_SAMPLEFLAG_EAGAIN' is not an integer constant expression [-Werror=pedantic] SOUND_SAMPLEFLAG_EAGAIN  = 1 << 31  /**< Function would block, or temp error. */
```

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71803
2017-07-09 19:08:58 +02:00
Moritz Bunkus ad41e91045 log4cxx: fix invalid narrowing conversion tripping up g++ >= 6
g++ 6 is stricter regarding narrowing conversions in initializer
lists. This causes errors similar to the following during compilation
with the gcc6 or gcc7 overlays:

    locationinfo.cpp:163:21: error: narrowing conversion of '237'
    from 'int' to 'char' inside { } [-Wnarrowing]

This has already been fixed upstream in several consecutive patches,
but there's no release including those fixes yet. This patch consists
of the essence of said fixes.
2017-07-09 19:08:23 +02:00
Moritz Bunkus 16aa4d0347 openmp-validation: add current directory to @INC for newer Perl
Perl v5.26.0 has removed the current directory from the include
path. This breaks the `run_test.pl` script which tries to load modules
from the build directory and fails if the system Perl is 5.26.0 or
newer.

Error message: `Can't locate ompts_parserFunctions.pm in @INC`
2017-07-09 15:31:17 +02:00
Tony Theodore e2ecdb2d15 Merge pull request #1809 from mbunkus/gendef-with-gcc7
gendef: build with -Wno-implicit-fallthrough
2017-07-09 19:48:23 +10:00
Moritz Bunkus e319717929 gendef: build with -Wno-implicit-fallthrough
gcc 7 has -Wimplicit-fallthrough on by default. On systems where the
build gcc is v7 or newer building gendef will therefore fail with the
following error:

src/gendef.c: In function ‘getMemonic’:
src/gendef.c:1034:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
   case c_4: sz++;

Fixes #1786.
2017-07-09 10:15:10 +02:00
MXEBot as Travis CI f0c1b340f0 Update packages.json & build-matrix.html 2017-07-09 04:40:50 +00:00
Lukasz Taczuk 33c746fb9e Update cmake to 3.8.2 (#1806)
* Update cmake to 3.8.2
2017-07-09 14:40:26 +10:00
Tony Theodore 94d849e198 Merge pull request #1801 from tonytheodore/debian-libtool-doc
debian requirements: move libtool-bin to main section
2017-07-08 14:16:52 +10:00
MXEBot as Travis CI c9c6613ca8 Update packages.json & build-matrix.html 2017-07-04 21:09:12 +00:00
Mark Brand 6e8cff6fc6 update: dbus, libidn2, libpng 2017-07-04 23:04:19 +02:00
MXEBot as Travis CI 5be5132f29 Update packages.json & build-matrix.html 2017-07-04 20:33:23 +00:00
Mark Brand 39bc761b5e update gnutls 2017-07-04 22:26:21 +02:00
mabrand 2a13a1db3b Merge pull request #1803 from darealshinji/dbus
dbus: avoid multiple definitions of DllMain in static builds
2017-07-04 22:15:29 +02:00
MXEBot as Travis CI 14f0ed00cb Update packages.json & build-matrix.html 2017-07-03 22:40:14 +00:00
Mark Brand 21580395e1 libgcrypt: update 2017-07-04 00:38:20 +02:00
darealshinji 75832a92a4 dbus: avoid multiple definitions of DllMain in static builds
Closes #1388
2017-07-02 20:09:14 -04:00
darealshinji 965a00eeca djvulibre: enable static library builds 2017-07-03 00:33:01 +02:00
MXEBot as Travis CI 07cc3451b8 Update packages.json & build-matrix.html 2017-07-02 02:22:50 +00:00
Tony Theodore 570227442f Merge pull request #984 from darealshinji/x265
new package: x265
2017-07-02 12:22:25 +10:00
darealshinji b6899abd7f x265: website, new header 2017-07-02 04:10:52 +02:00
darealshinji a6731b8527 x265: update, add patch and test 2017-07-01 18:36:06 +02:00
Tony Theodore 0fb4081281 debian requirements: move libtool-bin to main section
See:
https://github.com/mxe/mxe/issues/593#issuecomment-300228919
2017-07-01 23:01:47 +10:00
darealshinji bfdb83d725 Merge upstream/master changes 2017-07-01 13:44:18 +02:00
MXEBot as Travis CI 15c4127966 Update packages.json & build-matrix.html 2017-07-01 10:48:09 +00:00
Tony Theodore 738ea6079b Merge pull request #1776 from darealshinji/wxwidgets-shared
wxwidgets: enable DLLs (close #1767)
2017-07-01 20:47:25 +10:00
darealshinji 47270558e3 wxwidgets: enable DLLs 2017-07-01 12:00:09 +02:00
Tony Theodore 8931338435 Merge pull request #1800 from LuaAndC/mxe-targets
homepage: s/MXE_TARGET/MXE_TARGETS/
2017-07-01 17:15:56 +10:00
Boris Nagaev 2f399b8f60 homepage: s/MXE_TARGET/MXE_TARGETS/ 2017-07-01 04:15:54 +02:00
Tony Theodore cf385c6a2f Merge pull request #1791 from tonytheodore/osx-doc
osx: note workaround for recent Xcode versions
2017-06-21 08:07:44 +10:00
Tony Theodore b6c5f5abb7 Merge pull request #1790 from tonytheodore/freetype-pkg-config
freetype: use prefixed pkg-config in freetype-config script
2017-06-21 08:07:15 +10:00
MXEBot as Travis CI ae02e911c2 Update packages.json & build-matrix.html 2017-06-20 21:23:42 +00:00
Mark Brand 47e7580c60 update: expat, freetds, vmime 2017-06-20 21:43:17 +02:00
Tony Theodore aa4e4bab44 osx: note workaround for recent Xcode versions
see #1758
2017-06-20 20:10:25 +10:00
Tony Theodore 82700ceed0 freetype: use prefixed pkg-config in freetype-config script
fixes #1789
2017-06-20 19:53:02 +10:00
Tony Theodore be9e0856f2 Merge pull request #1788 from mabrand/clean-cflags-v3
Clean cflags v3
2017-06-20 19:50:30 +10:00
Mark Brand b8df830562 Revert "sqlite: don't add standard include path to Cflags"
No longer necessary since PKG_CONFIG_SYSTEM_INCLUDE_PATH is set.

This reverts commit 43214bf7e8.
2017-06-16 12:55:07 +02:00
Mark Brand b72e1a3f85 Avoid extra mentions of system library path when linking
Normally pkg-config would remove the system library path from
--libs output. Defining PKG_CONFIG_SYSTEM_LIBRARY_PATH helps
it do so. The extra mentions of system library path in the
linking commands is unsightly but probabaly harmless.
2017-06-16 12:54:27 +02:00
Mark Brand ede738758e qtbase: prevent extra leading / on system include and lib directories
PKG_CONFIG_SYSROOT should not be set because MXE uses fully
qualified paths. However, to  satisfy the Qt build system's
cross-compiling "sanity check", qtbase.mk defines
    PKG_CONFIG_SYSROOT_DIR=/
This causes pkg-config to prefix the system include and library
paths with an extra /. Pkg-config does not strip these prefixed
paths from --cflags and --libs output. The workaround here is
to remove the PKG_CONFIG_SYSROOT_DIR definition in the wrapper
script for pkg-config.
2017-06-16 11:56:32 +02:00
Mark Brand 49c892298d correct PKG_CONFIG_LIBDIR for qtbase 2017-06-16 11:56:32 +02:00
Tony Theodore b2c66b3191 pkgconf: use PKG_CONFIG_SYSTEM_INCLUDE_PATH in wrapper 2017-06-15 21:33:55 +10:00
Tony Theodore b35da9dd13 pkgconf: enable PKG_CONFIG_SYSTEM_INCLUDE_PATH environment variable
from #1785
2017-06-15 21:16:43 +10:00
MXEBot as Travis CI 07002736f0 Update packages.json & build-matrix.html 2017-06-14 10:15:11 +00:00
Mark Brand 95e0d6da70 update: freetype, harfbuzz
Update requires a second occurence of libfreetype in the static link
list to resolved symbols in the second occurence of libharfbuzz.
2017-06-14 11:21:48 +02:00
MXEBot as Travis CI 862ba8fdf1 Update packages.json & build-matrix.html 2017-06-14 09:16:50 +00:00
Mark Brand 2a849757a1 qtbase: use pkg-config for harfbuzz 2017-06-14 11:15:36 +02:00
Mark Brand 58cc96f0ad pixman: add missing libpng to DEPS 2017-06-14 11:15:35 +02:00
Mark Brand 892f73ada3 update: curl, fontconig, freetds, gdb, gnutls, tiff 2017-06-14 11:15:25 +02:00
MXEBot as Travis CI b53e1fa7fb Update packages.json & build-matrix.html 2017-06-09 07:42:58 +00:00
Mark Brand a4e6248517 sqlite: update 2017-06-09 09:41:49 +02:00
Mark Brand 26a5e4049a libgcrypt: update 2017-06-04 13:10:57 +02:00