1.1 --- a/make/common/NativeCompilation.gmk Thu Apr 12 02:54:38 2018 -0700 1.2 +++ b/make/common/NativeCompilation.gmk Mon Apr 16 00:48:00 2018 -0700 1.3 @@ -372,6 +372,10 @@ 1.4 $$(error Unknown value for OPTIMIZATION: $$($1_OPTIMIZATION)) 1.5 endif 1.6 1.7 + # Add sys root specific cflags last 1.8 + $1_EXTRA_CFLAGS += $(SYSROOT_CFLAGS) 1.9 + $1_EXTRA_CXXFLAGS += $(SYSROOT_CFLAGS) 1.10 + 1.11 # Now call add_native_source for each source file we are going to compile. 1.12 $$(foreach p,$$($1_SRCS), \ 1.13 $$(eval $$(call add_native_source,$1,$$p,$$($1_OBJECT_DIR), \ 1.14 @@ -417,6 +421,8 @@ 1.15 $1_EXTRA_LDFLAGS += $(call SET_SHARED_LIBRARY_MAPFILE,$$($1_REAL_MAPFILE)) 1.16 endif 1.17 1.18 + $1_EXTRA_LDFLAGS += $(SYSROOT_LDFLAGS) 1.19 + 1.20 $1 := $$($1_TARGET) 1.21 ifneq (,$$($1_LIBRARY)) 1.22 # Generating a dynamic library.