Skip to content

Commit 60e0371

Browse files
committed
ref: common: wscript: fix psvita build
1 parent a125f90 commit 60e0371

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

ref/common/wscript

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
#! /usr/bin/env python
22
# encoding: utf-8
33

4-
top = '.'
5-
64
def options(opt):
75
pass
86

97
def configure(conf):
108
pass
119

1210
def build(bld):
11+
# FIXME: figure out why psvita needs it and how can we avoid it
12+
if bld.env.DEST_OS == 'psvita':
13+
bld.env.CFLAGS_cstlib.remove('-fno-PIC')
14+
bld.env.CFLAGS += ['-fPIC']
15+
1316
bld.stlib(source = bld.path.ant_glob('*.c'),
1417
target = 'ref_common',
1518
includes = '.',

0 commit comments

Comments
 (0)