public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: H.J. Lu <hjl@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] Support compiling .S files with additional options Date: Sun, 25 Feb 2024 17:23:02 +0000 (GMT) [thread overview] Message-ID: <20240225172302.72C863858297@sourceware.org> (raw) 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
reply other threads:[~2024-02-25 17:23 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240225172302.72C863858297@sourceware.org \ --to=hjl@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).