Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add -fPIC flag
  • Loading branch information
petya2164 committed Oct 15, 2018
1 parent 9856f0a commit 88e307a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wscript
Expand Up @@ -14,6 +14,13 @@ def configure(conf):

def build(bld):

CXX = bld.env.get_flat("CXX")
# Matches both g++ and clang++
if 'g++' in CXX or 'clang' in CXX:
# The -fPIC flag is required for all underlying static libraries that
# will be included in any shared libraries built in this project
bld.env.append_value('CXXFLAGS', '-fPIC')

bld.env.append_unique(
'DEFINES_STEINWURF_VERSION',
'STEINWURF_PETRO_ANDROID_VERSION="{}"'.format(VERSION))
Expand Down

0 comments on commit 88e307a

Please sign in to comment.