diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2021-11-19 09:09:54 +0100 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2021-12-01 19:49:44 +0100 |
commit | 185b307b03db20bfc7105a519ef19e2cafea7196 (patch) | |
tree | 9476f0aac681d7d0bcf432a74d8e0258ad211f34 /libphobos | |
parent | 53caa4723d8de73fe21e63ba264082f3071b2887 (diff) | |
download | gcc-185b307b03db20bfc7105a519ef19e2cafea7196.zip gcc-185b307b03db20bfc7105a519ef19e2cafea7196.tar.gz gcc-185b307b03db20bfc7105a519ef19e2cafea7196.tar.bz2 |
darwin, d: Support outfile substitution for libphobos
In the gdc driver, this takes the previous fix for the Darwin D
bootstrap, and extends it to the -static-libphobos option as well.
Rather than pushing the -static-libphobos option back onto the command
line, the setting of SKIPOPT is instead conditionally removed. The same
change has been repeated for -static-libstdc++ so there is now no need
to call generate_option to re-add it.
In the gcc driver, -static-libphobos has been added as a common option,
validated, and a new outfile substition added to config/darwin.h to
correctly replace -lgphobos with libgphobos.a.
gcc/ChangeLog:
* common.opt (static-libphobos): Add option.
* config/darwin.h (LINK_SPEC): Substitute -lgphobos with libgphobos.a
when linking statically.
* gcc.c (driver_handle_option): Set -static-libphobos as always valid.
gcc/d/ChangeLog:
* d-spec.cc (lang_specific_driver): Set SKIPOPT on -static-libstdc++
and -static-libphobos only when target supports LD_STATIC_DYNAMIC.
Remove generate_option to re-add -static-libstdc++.
libphobos/ChangeLog:
* testsuite/testsuite_flags.in: Add libphobos library directory as
search path to --gdcldflags.
Diffstat (limited to 'libphobos')
-rwxr-xr-x | libphobos/testsuite/testsuite_flags.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libphobos/testsuite/testsuite_flags.in b/libphobos/testsuite/testsuite_flags.in index 93bf7cb..42053b2 100755 --- a/libphobos/testsuite/testsuite_flags.in +++ b/libphobos/testsuite/testsuite_flags.in @@ -46,6 +46,7 @@ case ${query} in --gdcldflags) GDCLDFLAGS="-B${BUILD_DIR}/src -B${BUILD_DIR}/libdruntime/gcc + -B${BUILD_DIR}/src/.libs -L${BUILD_DIR}/src/.libs" echo ${GDCLDFLAGS} ;; |