conditionalizing variables

Stefan Seefeld stefan at seefeld.name
Fri May 6 12:47:49 PDT 2011


On 2011-05-06 15:29, Enrico Weigelt wrote:
> * 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).

Indeed, that's the conclusion I have come to.

Thanks,
         Stefan

-- 

       ...ich hab' noch einen Koffer in Berlin...



More information about the pkg-config mailing list