Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit 758a98a

Browse files
committed
rust: Silence -fPIC warnings on Windows
Based on 44f2671 (vadimcn)
1 parent 4fba9ac commit 758a98a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

make/config.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ endif
4444
###
4545
# Common compiler options
4646
COMMON_INCLUDES=-I${ProjSrcRoot}/lib -I${ProjSrcRoot}/include
47-
COMMON_CXXFLAGS=-std=c++11 -fno-exceptions -fPIC -funwind-tables $(COMMON_INCLUDES)
48-
COMMON_CFLAGS=-fPIC $(COMMON_INCLUDES)
47+
COMMON_CXXFLAGS=-std=c++11 -fno-exceptions -funwind-tables $(COMMON_INCLUDES)
48+
COMMON_CFLAGS=$(COMMON_INCLUDES)
4949
COMMON_ASMFLAGS=$(COMMON_INCLUDES)

make/platform/clang_darwin.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ $(foreach config,$(Configs),\
151151
override CC := $(subst -arch ,-arch_,$(CC))
152152
override CC := $(patsubst -arch_%,,$(CC))
153153

154-
CFLAGS := -Wall -Werror -O3 -fomit-frame-pointer
154+
CFLAGS := -fPIC -Wall -Werror -O3 -fomit-frame-pointer
155155

156156
# Always set deployment target arguments for every build, these libraries should
157157
# never depend on the environmental overrides. We simply set them to minimum

make/platform/clang_linux.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ endif
6767

6868
###
6969

70-
CFLAGS := -Wall -Werror -O3 -fomit-frame-pointer
70+
CFLAGS := -fPIC -Wall -Werror -O3 -fomit-frame-pointer
7171

7272
CFLAGS.builtins-i386 := $(CFLAGS) -m32
7373
CFLAGS.builtins-x86_64 := $(CFLAGS) -m64

make/platform/darwin_bni.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ifneq (,$(SDKROOT))
2929
DEPLOYMENT_FLAGS += -isysroot $(SDKROOT)
3030
endif
3131

32-
CFLAGS := -Wall -Os -fomit-frame-pointer -g $(DEPLOYMENT_FLAGS)
32+
CFLAGS := -fPIC -Wall -Os -fomit-frame-pointer -g $(DEPLOYMENT_FLAGS)
3333
CFLAGS.Static := $(CFLAGS) -static
3434
DYLIB_FLAGS := $(DEPLOYMENT_FLAGS) \
3535
-Xarch_arm -Wl,-alias_list,$(SRCROOT)/lib/builtins/arm/softfloat-alias.list

0 commit comments

Comments
 (0)