mirror of
https://github.com/mupen64plus/mupen64plus-ui-console.git
synced 2025-04-02 10:52:34 -04:00
fix build with mingw64
build failed with mingw64 due to usage of "PIE" option on system without explicit PIE
This commit is contained in:
parent
7b23651028
commit
be0912f510
1 changed files with 14 additions and 0 deletions
|
@ -193,6 +193,20 @@ else
|
|||
LDFLAGS += -no-pie
|
||||
endif
|
||||
|
||||
ifdef PIE
|
||||
ifeq ($(PIE), 1)
|
||||
CFLAGS += -fPIE
|
||||
LDFLAGS += -pie
|
||||
else
|
||||
ifeq ($(PIE), 0)
|
||||
CFLAGS += -fno-PIE
|
||||
LDFLAGS += -no-pie
|
||||
else
|
||||
$(error Invalid PIE value.)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# set installation options
|
||||
ifeq ($(PREFIX),)
|
||||
PREFIX := /usr/local
|
||||
|
|
Loading…
Add table
Reference in a new issue