diff --git a/build/BUILD.gn b/build/BUILD.gn index ae1f84ec836d44435fda98ddc029fe6db3de7961..fb44404ea460d06a56db9d1f51edbf861b2e2626 100644 --- a/build/BUILD.gn +++ b/build/BUILD.gn @@ -50,6 +50,7 @@ if (!defined(board_configed_sysroot) || board_configed_sysroot == "") { arch_cflags = string_join(" ", target_arch_cflags) command = "make TOPDIR=$ohos_root_path SYSROOTDIR=$sysroot_path TARGETS=$targets -f $makefile" command += " ARCH=$arch TARGET=$target_triple ARCH_CFLAGS=\"$arch_cflags\"" + command += " BUILD_DEBUG=false BUILD_ALL_MULTILIB=false" # copy standard libraries libc.so and libc++.so to lib out dir libcpp = "\$($ohos_current_cxx_command --target=$target_triple --sysroot=$sysroot_path $arch_cflags -print-file-name=libc++.so)" diff --git a/build/Makefile b/build/Makefile index d9b2244ee98f734a8953e80942261537eb53cc31..58e0e3b86b9857a001039171c45a28d480ac116a 100644 --- a/build/Makefile +++ b/build/Makefile @@ -98,15 +98,15 @@ nuttx_header_install_for_liteos_a_user: musl_copy_for_liteos_a_user $(HIDE) sed '/^#include/d' $(NUTTXDIR)/include/nuttx/video/fb.h | sed 's,FAR ,,g' | sed 's,LosVmMapRegion,void,g' > $ $/dev/null && \ sed 's, -m 644 , -m 444 ,g' Makefile | make -f- -sj install-headers install-libs DESTDIR=$(SYSROOTDIR) + $(HIDE) cp -rfp linux_header_install_for_linux_user/include/* $(SYSROOTDIR)/usr/include/$(TARGET) ifeq ($(BUILD_DEBUG),true) musl_install_for_liteos_a_user: CFLAGS += -funwind-tables -fasynchronous-unwind-tables -rdynamic -I $(shell $(CC) -print-file-name=)include