flext icon indicating copy to clipboard operation
flext copied to clipboard

provide pkg-config file for the proper build-flags for externals

Open umlaeute opened this issue 10 years ago • 4 comments

it would be great to have a @[email protected] file (or similar), that outputs the proper CFLAGS and LIBS for dynamically linking with flext on @SYSTEM@.

e.g.

 $ pkg-config --cflags pd-flext
 -I/usr/local/include/flext -DPD -DFLEXT_SHARED
 $ pkg-config --libs pd-flext
 -lflext-pd

lower priority: pkg-config also has a --static flags that outputs flags for static linking:

 $ pkg-config --static --cflags pd-flext
 -I/usr/local/include/flext -DPD
 $ pkg-config --static --libs pd-flext
 -lflext-pd_s

umlaeute avatar Jul 15 '15 15:07 umlaeute

I am inexperienced with this, could you provide a first version that i shall refine?

grrrr avatar Jul 15 '15 15:07 grrrr

yep. but not today :-)

umlaeute avatar Jul 15 '15 15:07 umlaeute

it also seems that the --static just won't work as expected...

umlaeute avatar Jul 15 '15 19:07 umlaeute

Leaving the issue open until the contribution has been checked on OSX.

grrrr avatar Jul 15 '15 19:07 grrrr