xiaoxiang781216 commented on a change in pull request #5559:
URL: https://github.com/apache/incubator-nuttx/pull/5559#discussion_r810636558



##########
File path: boards/sim/sim/sim/scripts/Make.defs
##########
@@ -71,17 +74,12 @@ ARCHWARNINGSXX = -Wall -Wshadow -Wundef
 # Add -fvisibility=hidden
 # Because we don't want export nuttx's symbols to share libraries
 
-ARCHCPUFLAGS += -fvisibility=hidden
-ARCHCPUFLAGSXX += -fvisibility=hidden
-
-# Add -fno-common because macOS "ld -r" doesn't seem to pick objects
-# for common symbols.
-ARCHCPUFLAGS += -fno-common
-ARCHCPUFLAGSXX += -fno-common
+ARCHCFLAGS += -fvisibility=hidden

Review comment:
       This modification is aligned with other Make.defs in PR: 
https://github.com/apache/incubator-nuttx/pull/5553.
   Other Make.defs doesn't have -fvisibility, so I keep them in the original 
place.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to