mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
NuttX platform remove system (toolchain) stdc++ include path
This commit is contained in:
@@ -83,6 +83,7 @@ target_link_libraries(nuttx_cxx INTERFACE nuttx_c)
|
||||
|
||||
target_link_libraries(px4 PRIVATE
|
||||
|
||||
-nostartfiles
|
||||
-nodefaultlibs
|
||||
-nostdlib
|
||||
|
||||
@@ -99,6 +100,7 @@ target_link_libraries(px4 PRIVATE
|
||||
-Wl,--end-group
|
||||
|
||||
m
|
||||
gcc
|
||||
)
|
||||
|
||||
target_link_libraries(px4 PRIVATE ${module_libraries})
|
||||
|
||||
@@ -108,6 +108,7 @@ CFLAGS = $(ARCHINCLUDES) \
|
||||
|
||||
CXXFLAGS = $(ARCHXXINCLUDES) \
|
||||
-std=gnu++11 \
|
||||
-nostdinc++ \
|
||||
${CMAKE_CXX_FLAGS} \
|
||||
$(FLAGS) \
|
||||
-fcheck-new \
|
||||
|
||||
Reference in New Issue
Block a user