android/build.py: add -Iroot/include and -Lroot/lib

Allow library auto-detection without pkg-config.
This commit is contained in:
Max Kellermann 2014-02-22 10:21:09 +01:00
parent 4dcf0b8ae0
commit 25977d56c8
1 changed files with 2 additions and 2 deletions

View File

@ -79,8 +79,8 @@ def select_toolchain(use_cxx, use_clang):
cflags = '-Os -g ' + target_arch cflags = '-Os -g ' + target_arch
cxxflags = '-Os -g ' + target_arch cxxflags = '-Os -g ' + target_arch
cppflags = '--sysroot=' + target_root cppflags = '--sysroot=' + target_root + ' -I' + root_path + '/include'
ldflags = '--sysroot=' + target_root ldflags = '--sysroot=' + target_root + ' -L' + root_path + '/lib'
libs = '' libs = ''
if use_cxx: if use_cxx: