SDL/src
David Gow c57bcb47b1 test: Fix building with libunwind under autotools
There are two issues which are stopping the SDL tests from building on
my machine:
- libunwind is not being linked
- Even if it is, it is missing several symbols.

The first is fixed by having the test programs link against libunwind if
available. Technically, SDL2_test should be linking against it, as it's
used in SDL_test_memory.c, but as SDL2_test is a static library, it
can't itself import libunwind. We just assume that if it's present on
the system, we should link it directly to the test programs. This should
strictly be an improvement, as the only case where this'd fail is if
SDL2 was compiled when libunwind was present, but the tests are being
compiled without it, and that'd fail anyway.

The second is fixed by #define-ing UNW_LOCAL_ONLY before including
libunwind.h: this is required to make libunwind link to predicatable
symbols, in what can only be described as a bit of a farce. There are a
few more details in the libunwind man page, but the gist of it is that
it disables support for "remote unwinding": unwinding stack frames in a
different process (and possibly from a different architecture?):
http://www.nongnu.org/libunwind/man/libunwind(3).html

Note that I haven't tried this with CMake: I suspect that it'll work,
though, as the CMakeLists.txt seems to have SDL2 link against libunwind if
it's present. This adds an ugly extra dependency to SDL2, but does mean
that issue 1 isn't present. The UNW_LOCAL_ONLY change shouldn't be
build-system-specific.
2021-10-25 11:28:20 -07:00
..
atomic atomic: detect clang separately 2021-09-16 17:33:52 -07:00
audio Fixed bug #4534: NEON implementation of Convert51ToStereo (Thanks Ryan!) 2021-10-14 23:17:08 +02:00
core os2, geniconv: replaced many uses of libc calls with SDL_ counterparts. 2021-10-18 14:11:20 +03:00
cpuinfo Fix AltiVec detection on FreeBSD 2021-09-21 09:57:10 -07:00
dynapi wikiheaders.pl: Add support for deprecated functions. 2021-10-23 14:41:23 -04:00
events Add SDL_GetWindowICCProfile(). (#4314) 2021-10-21 17:37:20 -07:00
file Add support for Vita file API in SDL_rwops 2021-03-08 09:07:12 -08:00
filesystem Improve RISC OS implementations of SDL_GetBasePath and SDL_GetPrefPath 2021-10-12 13:07:52 -07:00
haptic Fixed some accidental uses of external C runtime functions 2021-09-22 09:06:45 -07:00
hidapi Use correct relative include path 2021-10-01 16:27:59 -07:00
joystick Fix PS5 mapping with HID-PLAYSTATION driver (#4675) 2021-10-24 17:54:26 -05:00
libm Updated copyright for 2021 2021-01-02 10:25:38 -08:00
loadso Updated copyright for 2021 2021-01-02 10:25:38 -08:00
locale consistently use TEXT() macro with LoadLibrary() and GetModuleHandle() 2021-01-04 01:23:50 +03:00
main Updated to version 2.0.17 for development 2021-08-10 15:02:36 -07:00
misc unix: OpenURL: Move unsetenv above vfork 2021-08-01 03:58:49 -07:00
power Fixed some accidental uses of external C runtime functions 2021-09-22 09:06:45 -07:00
render Fixed a few warnings 2021-10-25 16:18:40 +02:00
sensor Deprecate dolcesdk 2021-03-08 09:07:12 -08:00
stdlib fix SDL_atoi() 2021-10-04 21:32:00 +03:00
test test: Fix building with libunwind under autotools 2021-10-25 11:28:20 -07:00
thread Vita: fix thread detach. Remove leftover KillThread 2021-09-20 11:03:02 -07:00
timer Formatting 2021-03-08 09:07:12 -08:00
video wayland: Use multi-thread event reading APIs 2021-10-25 12:00:35 -04:00
SDL.c Ensure that SDL_InitSubSystem quits subsystems after an error. (#4834) 2021-10-12 15:55:31 -07:00
SDL_assert.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_assert_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_dataqueue.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_dataqueue.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_error.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_error_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_hints.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_hints_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_internal.h Remove SDL_HAVE_RENDER_GEOMETRY define 2021-10-24 22:27:56 -04:00
SDL_log.c log: Fixed compiler warnings on 64-bit Visual Studio. 2021-08-04 02:34:09 -04:00