aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2023-01-01 20:47:42 +0000
committerIain Sandoe <iain@sandoe.co.uk>2023-01-05 12:48:25 +0000
commitdd77b04999534f61825cc810a5bc428707b8106b (patch)
tree10a1fa88adc5977a7cf3dab3c88868b9de8ee748 /gcc/config
parent2421470867f198c3aa57e0a7ab0d473aac4cdd38 (diff)
downloadgcc-dd77b04999534f61825cc810a5bc428707b8106b.zip
gcc-dd77b04999534f61825cc810a5bc428707b8106b.tar.gz
gcc-dd77b04999534f61825cc810a5bc428707b8106b.tar.bz2
modula-2, driver: Implement handling for -static-libgm2.
This was unimplemented so far. gcc/ChangeLog: * common.opt: Add -static-libgm2. * config/darwin.h (LINK_SPEC): Handle static-libgm2. * doc/gm2.texi: Document static-libgm2. * gcc.cc (driver_handle_option): Allow static-libgm2. gcc/m2/ChangeLog: * gm2spec.cc (lang_specific_driver): Handle static-libgm2. * lang.opt: Add static-libgm2.
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/darwin.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index efe3187..e6f76e5 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -447,7 +447,12 @@ extern GTY(()) int darwin_ms_struct;
%{static|static-libgcc|static-libphobos:%:replace-outfile(-lgphobos libgphobos.a%s)}\
%{static|static-libgcc|static-libstdc++|static-libgfortran:%:replace-outfile(-lgomp libgomp.a%s)}\
%{static|static-libgcc|static-libstdc++:%:replace-outfile(-lstdc++ libstdc++.a%s)}\
- %{force_cpusubtype_ALL:-arch %(darwin_arch)} \
+ %{static|static-libgm2:%:replace-outfile(-lm2pim libm2pim.a%s)}\
+ %{static|static-libgm2:%:replace-outfile(-lm2iso libm2iso.a%s)}\
+ %{static|static-libgm2:%:replace-outfile(-lm2min libm2min.a%s)}\
+ %{static|static-libgm2:%:replace-outfile(-lm2log libm2log.a%s)}\
+ %{static|static-libgm2:%:replace-outfile(-lm2cor libm2cor.a%s)}\
+ %{force_cpusubtype_ALL:-arch %(darwin_arch)} \
%{!force_cpusubtype_ALL:-arch %(darwin_subarch)} "\
LINK_SYSROOT_SPEC \
"%{mmacosx-version-min=*:-macosx_version_min %*} \