mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 13:58:13 +00:00
Fix -fPIC when cross-compiling to windows
This commit is contained in:
parent
f7db5e0a4a
commit
02ba5785bf
1 changed files with 6 additions and 9 deletions
|
@ -17,10 +17,15 @@ endif
|
||||||
# To compile on Plan9:
|
# To compile on Plan9:
|
||||||
# CFLAGS += -D_BSD_EXTENSION
|
# CFLAGS += -D_BSD_EXTENSION
|
||||||
|
|
||||||
|
# if were running on Windows build for Windows
|
||||||
|
ifdef WINDOWS
|
||||||
|
WINDOWS_BUILD=1
|
||||||
|
endif
|
||||||
|
|
||||||
# To compile as a shared library:
|
# To compile as a shared library:
|
||||||
ifdef SHARED
|
ifdef SHARED
|
||||||
# all code is position-indep with mingw, avoid warning about useless flag
|
# all code is position-indep with mingw, avoid warning about useless flag
|
||||||
ifndef WINDOWS
|
ifndef WINDOWS_BUILD
|
||||||
CFLAGS += -fPIC
|
CFLAGS += -fPIC
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -31,14 +36,6 @@ DLEXT=so
|
||||||
# OSX shared library extension:
|
# OSX shared library extension:
|
||||||
# DLEXT=dylib
|
# DLEXT=dylib
|
||||||
|
|
||||||
#
|
|
||||||
# if we running on Windows build
|
|
||||||
# for Windows
|
|
||||||
#
|
|
||||||
ifdef WINDOWS
|
|
||||||
WINDOWS_BUILD=1
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Windows shared library extension:
|
# Windows shared library extension:
|
||||||
ifdef WINDOWS_BUILD
|
ifdef WINDOWS_BUILD
|
||||||
DLEXT=dll
|
DLEXT=dll
|
||||||
|
|
Loading…
Reference in a new issue