wscript: do not enforce PIC with lib_static

This commit is contained in:
mittorn 2020-02-08 23:55:56 +07:00
parent 02c68c3a70
commit 9b40d91a9b
1 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,9 @@ def configure(conf):
conf.options.GLWES = True
conf.options.GL = False
if conf.env.STATIC_LINKING:
enforce_pic = False # PIC may break static linking
conf.env.MAGX = conf.options.MAGX
if conf.options.MAGX:
conf.options.USE_SELECT = True