build: use -fPIC only for x64 binaries
This commit is contained in:
parent
0dc6c0f5db
commit
4fb46bd6ec
1 changed files with 3 additions and 0 deletions
|
|
@ -163,6 +163,9 @@ if cxx == 'clang' or cxx == 'gcc'
|
|||
ldflags += '-Wl,/MACHINE:X86'
|
||||
cxxflags += '-Wl,/MACHINE:X86'
|
||||
endif
|
||||
else
|
||||
cxxflags += '-fPIC'
|
||||
ldflags += '-fPIC'
|
||||
endif
|
||||
|
||||
# link needed libraries
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue