mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 18:27:05 +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
|
target_link_libraries(px4 PRIVATE
|
||||||
|
|
||||||
|
-nostartfiles
|
||||||
-nodefaultlibs
|
-nodefaultlibs
|
||||||
-nostdlib
|
-nostdlib
|
||||||
|
|
||||||
@@ -99,6 +100,7 @@ target_link_libraries(px4 PRIVATE
|
|||||||
-Wl,--end-group
|
-Wl,--end-group
|
||||||
|
|
||||||
m
|
m
|
||||||
|
gcc
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(px4 PRIVATE ${module_libraries})
|
target_link_libraries(px4 PRIVATE ${module_libraries})
|
||||||
|
|||||||
@@ -108,6 +108,7 @@ CFLAGS = $(ARCHINCLUDES) \
|
|||||||
|
|
||||||
CXXFLAGS = $(ARCHXXINCLUDES) \
|
CXXFLAGS = $(ARCHXXINCLUDES) \
|
||||||
-std=gnu++11 \
|
-std=gnu++11 \
|
||||||
|
-nostdinc++ \
|
||||||
${CMAKE_CXX_FLAGS} \
|
${CMAKE_CXX_FLAGS} \
|
||||||
$(FLAGS) \
|
$(FLAGS) \
|
||||||
-fcheck-new \
|
-fcheck-new \
|
||||||
|
|||||||
Reference in New Issue
Block a user