Commit 02ba5785 authored by Manuel Pégourié-Gonnard's avatar Manuel Pégourié-Gonnard
Browse files

Fix -fPIC when cross-compiling to windows

parent f7db5e0a
......@@ -17,10 +17,15 @@ endif
# To compile on Plan9:
# CFLAGS += -D_BSD_EXTENSION
# if were running on Windows build for Windows
ifdef WINDOWS
WINDOWS_BUILD=1
endif
# To compile as a shared library:
ifdef SHARED
# all code is position-indep with mingw, avoid warning about useless flag
ifndef WINDOWS
ifndef WINDOWS_BUILD
CFLAGS += -fPIC
endif
endif
......@@ -31,14 +36,6 @@ DLEXT=so
# OSX shared library extension:
# DLEXT=dylib
#
# if we running on Windows build
# for Windows
#
ifdef WINDOWS
WINDOWS_BUILD=1
endif
# Windows shared library extension:
ifdef WINDOWS_BUILD
DLEXT=dll
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment