Commit d990b801 authored by Cufi, Carles's avatar Cufi, Carles Committed by David Gibson
Browse files

Makefile: Fix build on MSYS2 and Cygwin



The host compiler on MSYS2 and Cygwin does not allow the -fPIC option,
issuing a warning that is treated as an error and stops the build.
Detect whether we're running under MSYS2 or Cygwin and avoid adding
-fPIC to prevent the error from happening.

Tested on Linux, MSYS2 and Cygwin.

Signed-off-by: default avatarCarles Cufi <carles.cufi@gmail.com>
[dwg: Added explicit empty CFLAGS for clarity]
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 51f56ded
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment