50 LINK_VER :=$(call GetVersion,"$(_LINK_VER)")
51
52 endif
53
54 ifeq ($(PLATFORM), linux)
55
56 # Settings specific to Linux
57 CC = $(COMPILER_PATH)gcc
58 CPP = $(COMPILER_PATH)gcc -E
59 # statically link libstdc++ before C++ ABI is stablized on Linux
60 STATIC_CXX = true
61 ifeq ($(STATIC_CXX),true)
62 # g++ always dynamically links libstdc++, even we use "-Wl,-Bstatic -lstdc++"
63 # We need to use gcc to statically link the C++ runtime. gcc and g++ use
64 # the same subprocess to compile C++ files, so it is OK to build using gcc.
65 CXX = $(COMPILER_PATH)gcc
66 else
67 CXX = $(COMPILER_PATH)g++
68 endif
69 # Option used to create a shared library
70 SHARED_LIBRARY_FLAG = -shared -mimpure-text
71 SUN_COMP_VER := $(shell $(CC) --verbose 2>&1 )
72
73 endif
74
75 ifeq ($(PLATFORM), solaris)
76
77 # Settings specific to Solaris
78 CC = $(COMPILER_PATH)gcc
79 CPP = $(COMPILER_PATH)gcc -E
80 CXX = $(COMPILER_PATH)g++
81
82 # Option used to create a shared library
83 SHARED_LIBRARY_FLAG = -G
84
85 endif
86
87 # Get gcc version
88 _CC_VER :=$(shell $(CC) -dumpversion 2>&1 )
89 CC_VER :=$(call GetVersion,"$(_CC_VER)")
90 CC_MAJORVER :=$(call MajorVersion,$(CC_VER))
|
50 LINK_VER :=$(call GetVersion,"$(_LINK_VER)")
51
52 endif
53
54 ifeq ($(PLATFORM), linux)
55
56 # Settings specific to Linux
57 CC = $(COMPILER_PATH)gcc
58 CPP = $(COMPILER_PATH)gcc -E
59 # statically link libstdc++ before C++ ABI is stablized on Linux
60 STATIC_CXX = true
61 ifeq ($(STATIC_CXX),true)
62 # g++ always dynamically links libstdc++, even we use "-Wl,-Bstatic -lstdc++"
63 # We need to use gcc to statically link the C++ runtime. gcc and g++ use
64 # the same subprocess to compile C++ files, so it is OK to build using gcc.
65 CXX = $(COMPILER_PATH)gcc
66 else
67 CXX = $(COMPILER_PATH)g++
68 endif
69 # Option used to create a shared library
70 SHARED_LIBRARY_FLAG = -shared
71 SUN_COMP_VER := $(shell $(CC) --verbose 2>&1 )
72
73 endif
74
75 ifeq ($(PLATFORM), solaris)
76
77 # Settings specific to Solaris
78 CC = $(COMPILER_PATH)gcc
79 CPP = $(COMPILER_PATH)gcc -E
80 CXX = $(COMPILER_PATH)g++
81
82 # Option used to create a shared library
83 SHARED_LIBRARY_FLAG = -G
84
85 endif
86
87 # Get gcc version
88 _CC_VER :=$(shell $(CC) -dumpversion 2>&1 )
89 CC_VER :=$(call GetVersion,"$(_CC_VER)")
90 CC_MAJORVER :=$(call MajorVersion,$(CC_VER))
|