SConstruct (11989:dbb16376953c) | SConstruct (11992:358cdf876d3d) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2013, 2015, 2016 ARM Limited 4# All rights reserved. 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 671 unchanged lines hidden (view full) --- 680 main.Append(CXXFLAGS=['-std=c++11']) 681 if sys.platform.startswith('freebsd'): 682 main.Append(CCFLAGS=['-I/usr/local/include']) 683 main.Append(CXXFLAGS=['-I/usr/local/include']) 684 685 main['FILTER_PSHLINKFLAGS'] = lambda x: str(x).replace(' -shared', '') 686 main['PSHLINKFLAGS'] = main.subst('${FILTER_PSHLINKFLAGS(SHLINKFLAGS)}') 687 main['PLINKFLAGS'] = main.subst('${LINKFLAGS}') | 1# -*- mode:python -*- 2 3# Copyright (c) 2013, 2015, 2016 ARM Limited 4# All rights reserved. 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 671 unchanged lines hidden (view full) --- 680 main.Append(CXXFLAGS=['-std=c++11']) 681 if sys.platform.startswith('freebsd'): 682 main.Append(CCFLAGS=['-I/usr/local/include']) 683 main.Append(CXXFLAGS=['-I/usr/local/include']) 684 685 main['FILTER_PSHLINKFLAGS'] = lambda x: str(x).replace(' -shared', '') 686 main['PSHLINKFLAGS'] = main.subst('${FILTER_PSHLINKFLAGS(SHLINKFLAGS)}') 687 main['PLINKFLAGS'] = main.subst('${LINKFLAGS}') |
688 shared_partial_flags = ['-Wl,--relocatable', '-nostdlib'] | 688 shared_partial_flags = ['-r', '-nostdlib'] |
689 main.Append(PSHLINKFLAGS=shared_partial_flags) 690 main.Append(PLINKFLAGS=shared_partial_flags) 691else: 692 print termcap.Yellow + termcap.Bold + 'Error' + termcap.Normal, 693 print "Don't know what compiler options to use for your compiler." 694 print termcap.Yellow + ' compiler:' + termcap.Normal, main['CXX'] 695 print termcap.Yellow + ' version:' + termcap.Normal, 696 if not CXX_version: --- 860 unchanged lines hidden --- | 689 main.Append(PSHLINKFLAGS=shared_partial_flags) 690 main.Append(PLINKFLAGS=shared_partial_flags) 691else: 692 print termcap.Yellow + termcap.Bold + 'Error' + termcap.Normal, 693 print "Don't know what compiler options to use for your compiler." 694 print termcap.Yellow + ' compiler:' + termcap.Normal, main['CXX'] 695 print termcap.Yellow + ' version:' + termcap.Normal, 696 if not CXX_version: --- 860 unchanged lines hidden --- |