You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/01/31 08:36:17 UTC

[nuttx-apps] branch master updated: Makefile: adjust compilation flags order

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 0e823eadc Makefile: adjust compilation flags order
0e823eadc is described below

commit 0e823eadcaec2ed4a557d10a5058f423d07c5023
Author: yinshengkai <yi...@xiaomi.com>
AuthorDate: Mon Jan 30 16:47:37 2023 +0800

    Makefile: adjust compilation flags order
    
    Signed-off-by: yinshengkai <yi...@xiaomi.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index c4519c588..6e615c722 100644
--- a/Makefile
+++ b/Makefile
@@ -114,7 +114,7 @@ $(SYMTABSRC): $(foreach SDIR, $(CONFIGURED_APPS), $(SDIR)_all)
 	$(Q) $(call TESTANDREPLACEFILE, $@.tmp, $@)
 
 $(SYMTABOBJ): %$(OBJEXT): %.c
-	$(call COMPILE, -fno-lto -fno-builtin $<, $@)
+	$(call COMPILE, $<, $@, -fno-lto -fno-builtin)
 
 $(BIN): $(SYMTABOBJ)
 	$(call ARCHIVE_ADD, $(call CONVERT_PATH,$(BIN)), $^)