SRI-CSL / gllvm

Whole Program LLVM: wllvm ported to go
BSD 3-Clause "New" or "Revised" License
300 stars 34 forks source link

How to compile pkg-config? #46

Open prRZ5F4LXZ opened 3 years ago

prRZ5F4LXZ commented 3 years ago

I am trying to following the example. But I failed.

/tmp/pkg-config-0.26$ CC=gclang ./configure --with-internal-glib
...
checking for pkg-config... pkg-config
configure: error: pkg-config and glib-2.0 not found, please set GLIB_CFLAGS and GLIB_LIBS to the correct values

It seems that some dependences need to be installed. But I don't see any instructions in

https://github.com/SRI-CSL/gllvm/blob/master/examples/pkg-config/Makefile

Could anybody let me know how to fix the problem?

ianamason commented 3 years ago

First try building it with just clang. Then try it with gllvm. The example you are linking to is probably out of date.

ianamason commented 3 years ago

If you need hints. Homebrew presumably has a package, and so also a recipe.

ianamason commented 3 years ago

Can I close this @prRZ5F4LXZ?