forked from Archive/PX4-Autopilot
NuttX platform remove system (toolchain) stdc++ include path
This commit is contained in:
parent
542cd7f216
commit
195dbf4ab6
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue