tools: use pkg-config to found libgc
authorJean Privat <jean@pryen.org>
Sat, 1 Nov 2014 18:06:17 +0000 (14:06 -0400)
committerJean Privat <jean@pryen.org>
Mon, 3 Nov 2014 15:01:39 +0000 (10:01 -0500)
commite1b34c3b6021fc4c45c45633f8ed6dfcca55cee3
tree970895fe9a3f5c7594fc918599d338d321121eda
parent4be8bebe13251c7f1aefef11d37426b4bf8a98ed
tools: use pkg-config to found libgc

In some platform (macosx+macports), the libgc library is not located at
standard default position.
Fortunately, libgc seems to be registered with pkg-config under most
platforms.

Thus, use pkg-config in the generated makefiles to found the correct
flags and paths.

In c_src, some generated files are manually modified to provide a
working bootstrap under those platforms.

This is only a quick-and-dirty workaround. The real job must be polished
and generalized to solve the issue #864.

Reported-by: Alexandre Blondin Massé <alexandre.blondin.masse@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>
c_src/Makefile
c_src/abstract_compiler.sep.1.c
src/compiler/abstract_compiler.nit