Skip to content

Commit a6c26f4

Browse files
committed
replace stlport with gnustl
1 parent 523f4e9 commit a6c26f4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/waifulib/xcompile.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ def system_stl(self):
215215
# TODO: proper STL support
216216
return [
217217
#os.path.abspath(os.path.join(self.ndk_home, 'sources', 'cxx-stl', 'system', 'include')),
218-
os.path.abspath(os.path.join(self.ndk_home, 'sources', 'cxx-stl', 'stlport', 'stlport')),
219218
os.path.abspath(os.path.join(self.ndk_home, 'sources', 'android', 'support', 'include'))
220219
]
221220

@@ -346,8 +345,12 @@ def configure(conf):
346345
conf.env.CXXFLAGS += android.cflags(True)
347346
conf.env.LINKFLAGS += android.linkflags()
348347
conf.env.LDFLAGS += android.ldflags()
349-
conf.env.STLIBPATH += [os.path.abspath(os.path.join(android.ndk_home, 'sources','cxx-stl','stlport','libs',stlarch))]
350-
conf.env.LDFLAGS += ['-lstlport_static']
348+
conf.env.INCLUDES += [
349+
os.path.abspath(os.path.join(android.ndk_home, 'sources', 'cxx-stl', 'gnu-libstdc++', '4.9', 'include')),
350+
os.path.abspath(os.path.join(android.ndk_home, 'sources', 'cxx-stl', 'gnu-libstdc++', '4.9', 'libs', stlarch, 'include'))
351+
]
352+
conf.env.STLIBPATH += [os.path.abspath(os.path.join(android.ndk_home, 'sources','cxx-stl','gnu-libstdc++','4.9','libs',stlarch))]
353+
conf.env.LDFLAGS += ['-lgnustl_static']
351354

352355
conf.env.HAVE_M = True
353356
if android.is_hardfp():

0 commit comments

Comments
 (0)