public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Support compiling .S files with additional options
@ 2024-02-25 17:23 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2024-02-25 17:23 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c503c2603c230005f5af40d14494c427f61b0160

commit c503c2603c230005f5af40d14494c427f61b0160
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Feb 25 04:22:03 2024 -0800

    Support compiling .S files with additional options
    
    Add $(sysdep-ASFLAGS) $(ASFLAGS-$(<F)) $(ASFLAGS-$(@F)) to compile.S and
    COMPILE.S to support compiling .S files with additional options.

Diff:
---
 Makerules | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makerules b/Makerules
index 00365bc58b..275110dda8 100644
--- a/Makerules
+++ b/Makerules
@@ -447,10 +447,12 @@ native-compile-mkdep-flags = -MMD -MP -MF $@.dt -MT $@
 compile.c = $(CC) $< -c $(CFLAGS) $(CPPFLAGS)
 compile.cc = $(CXX) $< -c $(CXXFLAGS) $(CPPFLAGS)
 compile.S = $(CC) $< -c $(CPPFLAGS) $(S-CPPFLAGS) \
-		  $(ASFLAGS) $(ASFLAGS-$(suffix $@))
+		  $(ASFLAGS) $(ASFLAGS-$(suffix $@)) $(sysdep-ASFLAGS) \
+		  $(ASFLAGS-$(<F)) $(ASFLAGS-$(@F))
 COMPILE.c = $(CC) -c $(CFLAGS) $(CPPFLAGS)
 COMPILE.S = $(CC) -c $(CPPFLAGS) $(S-CPPFLAGS) \
-		  $(ASFLAGS) $(ASFLAGS-$(suffix $@))
+		  $(ASFLAGS) $(ASFLAGS-$(suffix $@)) $(sysdep-ASFLAGS) \
+		  $(ASFLAGS-$(<F)) $(ASFLAGS-$(@F))
 
 # We need this for the output to go in the right place.  It will default to
 # empty if make was configured to work with a cc that can't grok -c and -o

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-25 17:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-25 17:23 [glibc] Support compiling .S files with additional options H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).