mirror of
https://github.com/BertoldVdb/ZoneDetect.git
synced 2026-04-27 14:57:40 +00:00
Fix error: "-fPIC ignored for target (all code is position independent)" for Windows build.
This commit is contained in:
parent
2ee7048144
commit
8a2852bb86
1 changed files with 2 additions and 1 deletions
|
|
@ -27,13 +27,14 @@
|
||||||
CC?=$(CCARCH)gcc
|
CC?=$(CCARCH)gcc
|
||||||
STRIP?=$(CCARCH)strip
|
STRIP?=$(CCARCH)strip
|
||||||
|
|
||||||
CFLAGS=-fPIC $(if $(DEBUG),-O0 -g,-O3) -std=gnu99 -pedantic -Wall -Wextra -Wconversion -Werror -c -fmessage-length=0 -ffunction-sections -fdata-sections
|
CFLAGS=$(if $(DEBUG),-O0 -g,-O3) -std=gnu99 -pedantic -Wall -Wextra -Wconversion -Werror -c -fmessage-length=0 -ffunction-sections -fdata-sections
|
||||||
LDFLAGS=-shared
|
LDFLAGS=-shared
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
EXT=dll
|
EXT=dll
|
||||||
else
|
else
|
||||||
EXT=so
|
EXT=so
|
||||||
|
CFLAGS += -fPIC
|
||||||
LDFLAGS += -Wl,--hash-style=gnu
|
LDFLAGS += -Wl,--hash-style=gnu
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue