mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
sysroot and cross-compiler based build WIP
This commit is contained in:
47
scons/target_env.scons
Normal file
47
scons/target_env.scons
Normal file
@@ -0,0 +1,47 @@
|
||||
Import('env')
|
||||
|
||||
env = env.Clone()
|
||||
env.Append(
|
||||
CCFLAGS = [
|
||||
'-nodefaultlibs',
|
||||
'-nostdinc',
|
||||
'-nostdlib',
|
||||
#'-nolibc',
|
||||
|
||||
'-ffreestanding',
|
||||
'-fno-omit-frame-pointer',
|
||||
|
||||
'-isystem', 'sysroot/include',
|
||||
'-mcmodel=large',
|
||||
|
||||
'-fno-PIC',
|
||||
],
|
||||
|
||||
LINKFLAGS = [
|
||||
'-g',
|
||||
'-nostdlib',
|
||||
#'-znocombreloc',
|
||||
#'-Bsymbolic',
|
||||
'-nostartfiles',
|
||||
],
|
||||
|
||||
LIBS = [
|
||||
#'c++',
|
||||
#'c++abi',
|
||||
'unwind',
|
||||
],
|
||||
|
||||
CXXFLAGS = [
|
||||
#'-nostdlibinc',
|
||||
'-fno-exceptions',
|
||||
'-fno-rtti',
|
||||
'-D_LIBCPP_NO_EXCEPTIONS',
|
||||
'-D_LIBCPP_HAS_NO_THREADS',
|
||||
'-D__ELF__',
|
||||
'-mcmodel=large',
|
||||
],
|
||||
)
|
||||
|
||||
Return('env')
|
||||
|
||||
# vim: ft=python et
|
||||
Reference in New Issue
Block a user