Changes between Version 7 and Version 8 of pm-switch


Ignore:
Timestamp:
Nov 18, 2010 9:32:08 AM (10 years ago)
Author:
stefan
Comment:

note on not using .pc file variables in xxx-uninstalled-pc.in files

Legend:

Unmodified
Added
Removed
Modified
  • pm-switch

    v7 v8  
    149149
    150150This the pkg-config file for finding uninstalled versions of a given library built from source. It's almost identical to the above with just a few path differences.
     151
     152Also it is important to note that no .pc file variables should be used in the Libs and Cflags arguments, e.g., ${libdir} or ${includedir} as in the xxx.pc.in file.
     153The reason is that if the case that pkg-config is not installed on a system, configure parsed the xxx-uninstalled.pc.in files itself, and this parsing code does not support variables in .pc files.
    151154{{{
    152155prefix=@prefix@
    153 libdir=@ABSBUILDDIR@/src
    154 includedir=@abs_source_dir@/src
    155156
    156157Name: Xxx
    157158Description: Xxx does nothing useful
    158159Version: @PACKAGE_VERSION@
    159 Libs: -L${libdir} -lXxx @XXXLIB_PCLIBS@
    160 Cflags: -I${includedir} -I@ABSBUILDDIR@/inc
     160Libs: -L@ABSBUILDDIR@/src -lXxx @XXXLIB_PCLIBS@
     161Cflags: -I@abs_source_dir@/src -I@ABSBUILDDIR@/inc
    161162Requires: @XXXLIB_PCREQUIRES@
    162163}}}