diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-02-25 04:22:03 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-02-25 09:22:40 -0800 |
commit | c503c2603c230005f5af40d14494c427f61b0160 (patch) | |
tree | 4e477999f867fdb19e2e2340ed8f36697fd3fe1f /Makerules | |
parent | dfb05f8e704edac70db38c4c8ee700769d91a413 (diff) | |
download | glibc-c503c2603c230005f5af40d14494c427f61b0160.tar.gz glibc-c503c2603c230005f5af40d14494c427f61b0160.tar.xz glibc-c503c2603c230005f5af40d14494c427f61b0160.zip |
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.
Diffstat (limited to 'Makerules')
-rw-r--r-- | Makerules | 6 |
1 files 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 |