mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-08 18:34:00 +00:00
Link with the shared version of the C standard library,
Estimated hours taken: 1 Link with the shared version of the C standard library, rather than linking the C library in statically. This works around an lcc bug with static linking. compiler/Mmakefile: profiler/Mmakefile: Add `--shared' to `MLFLAGS'. The overrides the default `--static' on Linux. (Since we name all the Mercury libraries that we link with explicitly, this only affects the way we link with the C library, not with the Mercury runtime or standard library.)
This commit is contained in:
@@ -43,7 +43,7 @@ C2INIT = MERCURY_MOD_LIB_MODS="$(LIBRARY_DIR)/$(STD_LIB_NAME).init $(RUNTIME_DIR
|
||||
MERCURY_MKINIT=$(UTIL_DIR)/mkinit $(SCRIPTS_DIR)/c2init
|
||||
C2INITFLAGS = --library
|
||||
ML = MERCURY_C_LIB_DIR=. $(SCRIPTS_DIR)/ml
|
||||
MLFLAGS = --mercury-libs none
|
||||
MLFLAGS = --shared --mercury-libs none
|
||||
MLLIBS = ../main.$O \
|
||||
$(TRACE_DIR)/lib$(TRACE_LIB_NAME).$A \
|
||||
$(BROWSER_DIR)/lib$(BROWSER_LIB_NAME).$A \
|
||||
|
||||
@@ -40,7 +40,7 @@ C2INIT = MERCURY_MOD_LIB_MODS="$(LIBRARY_DIR)/$(STD_LIB_NAME).init $(RUNTIME_DI
|
||||
MERCURY_TRACE_LIB_MODS="$(BROWSER_DIR)/$(BROWSER_LIB_NAME).init" \
|
||||
MERCURY_MKINIT=$(UTIL_DIR)/mkinit $(SCRIPTS_DIR)/c2init
|
||||
ML = MERCURY_C_LIB_DIR=. $(SCRIPTS_DIR)/ml
|
||||
MLFLAGS = --mercury-libs none
|
||||
MLFLAGS = --shared --mercury-libs none
|
||||
MLLIBS = $(TRACE_DIR)/lib$(TRACE_LIB_NAME).$A \
|
||||
$(BROWSER_DIR)/lib$(BROWSER_LIB_NAME).$A \
|
||||
$(LIBRARY_DIR)/lib$(STD_LIB_NAME).$A \
|
||||
|
||||
Reference in New Issue
Block a user