mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-17 06:47:17 +00:00
Estimated hours taken: 3 Branches: main This fixes some problems with building everything with `mmake --use-mmc-make' on x86, or possibly any platform where shared libraries are supported. Mmake.workspace: Add "--mercury-linkage static" or "--mercury-linkage shared" to `MCFLAGS' depending on whether the `LINK_STATIC' makefile variable is yes or no. analysis/ANALYSIS_FLAGS.in: Add -L<dir> options so that the analysis library can find the boehm_gc, runtime and standard library files when built in shared linking mode. browser/Mercury.options: Work around a problem with per-file variables and `mmake --use-mmc-make'. compiler/COMP_FLAGS.in: profiler/PROF_FLAGS.in: slice/SLICE_FLAGS.in: Remove "--linkage shared" from these files. The Mmakefiles in these directories have "LINK_STATIC=yes" set. This was causing a link error where the object files where being built with PIC but expected to link against lib*.a files.
23 lines
627 B
Plaintext
23 lines
627 B
Plaintext
@BOOTSTRAP_MC_ARGS@
|
|
--no-infer-all
|
|
--halt-at-warn
|
|
--no-warn-inferred-erroneous
|
|
--no-mercury-stdlib-dir
|
|
-I../library
|
|
-I../browser
|
|
-I../mdbcomp
|
|
-I../analysis
|
|
--c-include-directory ../boehm_gc
|
|
--c-include-directory ../boehm_gc/include
|
|
--c-include-directory ../runtime
|
|
--c-include-directory ../library
|
|
--c-include-directory ../library/Mercury/mihs
|
|
--c-include-directory ../mdbcomp
|
|
--c-include-directory ../mdbcomp/Mercury/mihs
|
|
--c-include-directory ../browser
|
|
--c-include-directory ../browser/Mercury/mihs
|
|
--c-include-directory ../trace
|
|
--c-include-directory ../analysis
|
|
--no-main
|
|
--config-file ../scripts/Mercury.config.bootstrap
|