mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-13 12:53:53 +00:00
Estimated hours taken: 1 Branches: main Handle LDFLAGS and LD_LIBFLAGS with `mmc --make'. compiler/options.m: doc/user_guide.texi: Add `--ml-flags' as a synonym for `--link-flags'. Add `--ld-flags' and `--ld-libflags', which are the options corresponding to the LDFLAGS and LD_LIBFLAGS Mmake variables. Add a comment that the `--output-file' option is ignored with `mmc --make'. compiler/options_file.m: Handle LDFLAGS and LD_LIBFLAGS. Handle MLLIBS correctly. MLLIBS contains `-l' options (which can be handled by mmc), not flags for ml. The value of LIBRARIES (which contains Mercury libraries to link with) now comes before MLLIBS, because Mercury libraries depend on C libraries, but C libraries usually don't depend on Mercury libraries. compiler/compile_target_code.m: Pass the value `--ldflags' or `--ld-libflags' to ml. scripts/Mmake.vars.in: Add LDFLAGS and LD_LIBFLAGS to the options file passed to the options file passed to `mmc --make' on standard input.