lbry-android-sdk/p4a/pythonforandroid/recipes/boost/user-config.jam

42 lines
1.3 KiB
Text
Raw Permalink Normal View History

2017-08-13 03:24:00 +02:00
import os ;
local ARCH = [ os.environ ARCH ] ;
2022-12-02 21:15:34 +01:00
local TARGET_TRIPLET = [ os.environ TARGET_TRIPLET ] ;
local CROSSHOME = [ os.environ CROSSHOME ] ;
local PYTHON_HOST = [ os.environ PYTHON_HOST ] ;
2017-08-13 03:24:00 +02:00
local PYTHON_ROOT = [ os.environ PYTHON_ROOT ] ;
local PYTHON_INCLUDE = [ os.environ PYTHON_INCLUDE ] ;
local PYTHON_LINK_VERSION = [ os.environ PYTHON_LINK_VERSION ] ;
local PYTHON_MAJOR_MINOR = [ os.environ PYTHON_MAJOR_MINOR ] ;
2017-08-13 03:24:00 +02:00
2022-12-02 21:15:34 +01:00
using clang : $(ARCH) : $(CROSSHOME)/bin/$(TARGET_TRIPLET)-clang++ :
<archiver>$(CROSSHOME)/bin/llvm-ar
<compileflags>-fPIC
<compileflags>-ffunction-sections
2022-12-02 21:15:34 +01:00
<compileflags>-fdata-sections
<compileflags>-funwind-tables
2022-12-02 21:15:34 +01:00
<compileflags>-fstack-protector-strong
<compileflags>-no-canonical-prefixes
<compileflags>-Wformat
<compileflags>-Werror=format-security
<compileflags>-frtti
<compileflags>-fexceptions
<compileflags>-DNDEBUG
<compileflags>-g
2022-12-02 21:15:34 +01:00
<compileflags>-Oz
<compileflags>-mthumb
<linkflags>-Wl,-z,relro
<linkflags>-Wl,-z,now
<linkflags>-lc++_shared
<linkflags>-L$(PYTHON_ROOT)
<linkflags>-lpython$(PYTHON_LINK_VERSION)
<linkflags>-Wl,-O1
<linkflags>-Wl,-Bsymbolic-functions
2017-08-13 03:24:00 +02:00
;
using python : $(PYTHON_MAJOR_MINOR)
: $(PYTHON_host)
: $(PYTHON_ROOT) $(PYTHON_INCLUDE)
: $(PYTHON_ROOT)/libpython$(PYTHON_LINK_VERSION).so
: #<define>BOOST_ALL_DYN_LINK
;