2021-08-31 01:34:43 -04:00
|
|
|
linux_CFLAGS=-pipe -std=$(C_STANDARD)
|
2021-09-09 03:21:01 -03:00
|
|
|
linux_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
2021-11-15 23:01:38 -03:00
|
|
|
|
|
|
|
ifneq ($(LTO),)
|
2022-06-16 05:19:49 -04:00
|
|
|
linux_AR = $(host_toolchain)gcc-ar
|
|
|
|
linux_NM = $(host_toolchain)gcc-nm
|
|
|
|
linux_RANLIB = $(host_toolchain)gcc-ranlib
|
2021-11-15 23:01:38 -03:00
|
|
|
endif
|
|
|
|
|
2014-09-23 18:00:31 -03:00
|
|
|
linux_release_CFLAGS=-O2
|
|
|
|
linux_release_CXXFLAGS=$(linux_release_CFLAGS)
|
|
|
|
|
|
|
|
linux_debug_CFLAGS=-O1
|
|
|
|
linux_debug_CXXFLAGS=$(linux_debug_CFLAGS)
|
|
|
|
|
2023-09-14 09:12:14 -03:00
|
|
|
linux_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_LIBCPP_ENABLE_DEBUG_MODE=1
|
2014-09-23 18:00:31 -03:00
|
|
|
|
2014-07-23 01:31:30 -04:00
|
|
|
ifeq (86,$(findstring 86,$(build_arch)))
|
|
|
|
i686_linux_CC=gcc -m32
|
|
|
|
i686_linux_CXX=g++ -m32
|
|
|
|
i686_linux_AR=ar
|
|
|
|
i686_linux_RANLIB=ranlib
|
|
|
|
i686_linux_NM=nm
|
|
|
|
i686_linux_STRIP=strip
|
|
|
|
|
|
|
|
x86_64_linux_CC=gcc -m64
|
|
|
|
x86_64_linux_CXX=g++ -m64
|
|
|
|
x86_64_linux_AR=ar
|
|
|
|
x86_64_linux_RANLIB=ranlib
|
|
|
|
x86_64_linux_NM=nm
|
|
|
|
x86_64_linux_STRIP=strip
|
|
|
|
else
|
|
|
|
i686_linux_CC=$(default_host_CC) -m32
|
|
|
|
i686_linux_CXX=$(default_host_CXX) -m32
|
|
|
|
x86_64_linux_CC=$(default_host_CC) -m64
|
|
|
|
x86_64_linux_CXX=$(default_host_CXX) -m64
|
|
|
|
endif
|
2019-07-09 14:40:45 -04:00
|
|
|
linux_cmake_system=Linux
|