help needed to compile a C program

Rainer Müller raimue at macports.org
Fri Apr 13 18:17:09 UTC 2018


On 2018-04-13 18:21, macports at parvis.nl wrote:
> with makefile:
> ---
> pango-list-typefaces:   pango-list-typefaces.c
>         cc -o $@ -Wall -g pango-list-typefaces.c \
>         $(pkg-config --cflags --libs pango) \
>         $(pkg-config --cflags --libs cairo) \
>         $(pkg-config --cflags --libs pangocairo) \Currently 
>         $(pkg-config --cflags --libs glib-2.0)

The Makefile is your problem. $(foo) is a normal variable expansion.
This should be: $(shell pkg-config ...)

Rainer


More information about the macports-users mailing list