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:
Fergus Henderson
2001-01-17 02:30:57 +00:00
parent e96faf2e34
commit 9cf20611cc
2 changed files with 2 additions and 2 deletions

View File

@@ -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 \

View File

@@ -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 \