conditionalizing variables

Enrico Weigelt weigelt at metux.de
Fri May 6 12:29:07 PDT 2011


* Stefan Seefeld <seefeld at sympatico.ca> schrieb:

> libs_dynamic = -lfoo -lbar
> libs_static = -Wl,-Bstatic -lfoo -lbar -Wl,-Bdynamic
> 
> Is there a way to conditionalize sections of a .pc file, for example to 
> define the 'Libs:' keyword either via ${libs_dynamic} or ${libs_static}, 
> depending on some command-line option ?
> 
> For example, could the .pc file itself contain conditionals, such as

Perhaps provide two .pc files, one for static and one for dynamic
library ? (okay, leaving aside the reordering issue 
just for a moment ;-o).


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt at metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------


More information about the pkg-config mailing list