Skip to content

Commit 10185bb

Browse files
committed
Do I need -fPIC for Windows?
1 parent d565960 commit 10185bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ ifeq ($(BUILDTYPE),windows)
1515
CFLAGS += -g -O3 \
1616
-ffunction-sections \
1717
-fdata-sections \
18-
-Wno-attributes
18+
-Wno-attributes \
19+
-fPIC
1920
CXXFLAGS += \
2021
-std=c++23 \
2122
-Wno-deprecated-enum-float-conversion \
2223
-Wno-deprecated-enum-enum-conversion \
2324
-U__GXX_TYPEINFO_EQUALITY_INLINE \
24-
-D__GXX_TYPEINFO_EQUALITY_INLINE
25+
-D__GXX_TYPEINFO_EQUALITY_INLINE \
26+
-fPIC
2527
#LDFLAGS += -Wl,--gc-sections
2628
AR = $(MINGW)gcc-ar
2729
PKG_CONFIG = $(MINGW)pkg-config --static

0 commit comments

Comments
 (0)