Add GNU compiler support to build src/Native (dotnet/corefx#35737)
authorAdeel Mujahid <adeelbm@outlook.com>
Mon, 11 Mar 2019 19:32:34 +0000 (21:32 +0200)
committerJan Vorlicek <janvorli@microsoft.com>
Mon, 11 Mar 2019 19:32:34 +0000 (20:32 +0100)
commitc13af4ec0007c34f52c75bb6ff2466a1c7c6db65
tree465bc60895d45d62b2d5cf87cb63334bfb7c8c63
parent2f3373b353132e97808a622c0951ac2a0535426e
Add GNU compiler support to build src/Native (dotnet/corefx#35737)

* Add GNU compiler support to build src/Native
Tested with gcc v5, v6, v7 and v8 on CentOS 7, Ubuntu 18, Debian 8 and
FreeBSD 11.
`corefx/src/Native/build-native.sh x64 checked gcc`

* Remove unnecessary cast

* Sync gen-buildsys-gcc.sh with CoreCLR

Commit migrated from https://github.com/dotnet/corefx/commit/b3b1777642c80f7a0ba57b32581c33442ceac1d7
src/libraries/Native/Unix/CMakeLists.txt
src/libraries/Native/Unix/Common/pal_config.h.in
src/libraries/Native/Unix/Common/pal_safecrt.h
src/libraries/Native/Unix/System.Net.Security.Native/pal_gssapi.c
src/libraries/Native/Unix/configure.cmake
src/libraries/Native/Unix/gen-buildsys-gcc.sh [new file with mode: 0755]
src/libraries/Native/build-native.sh