Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add LIBGC_FORCE_COMPILE=true flag.
This forces it to compile libgc. Useful in cases where the system libgc
does not work as it should. (I ran into this problem on ArchLinux. Not
sure what happened.)
  • Loading branch information
Nick Markwell committed Jun 17, 2012
1 parent 445d35c commit fde7b5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -56,7 +56,7 @@ prepare_bootstrap:
@echo "Done!"

boehmgc:
cd libs && $(MAKE)
cd libs && $(MAKE) LIBGC_FORCE_COMPILE=${LIBGC_FORCE_COMPILE}

# For c-source based rock releases, 'make bootstrap' will compile a version
# of rock from the C sources in build/, then use that version to re-compile itself
Expand Down
4 changes: 4 additions & 0 deletions libs/Makefile
Expand Up @@ -54,6 +54,10 @@ GC_PREFIX?=$(shell pkg-config --variable=libdir bdw-gc)
LIBGC_PRESENT=$(wildcard ${GC_PREFIX}/libgc.a)
LIBGC_SUPPORTS_THREADS=$(shell nm $(wildcard ${GC_PREFIX}/libgc.a) | grep GC_pthread_create)

ifneq (${LIBGC_FORCE_COMPILE},)
LIBGC_PRESENT=
endif

all:
mkdir -p ${GC_PATH}
ifneq (${LIBGC_PRESENT},)
Expand Down

0 comments on commit fde7b5f

Please sign in to comment.