Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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...
commit fde7b5fb7adbfd2c49e503259e3c928f4de3f9a9 1 parent 445d35c
@duckinator duckinator authored
Showing with 5 additions and 1 deletion.
  1. +1 −1  Makefile
  2. +4 −0 libs/Makefile
View
2  Makefile
@@ -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
View
4 libs/Makefile
@@ -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},)
Please sign in to comment.
Something went wrong with that request. Please try again.