Expansion not identical to pkg-config #67

Closed
opened 2014-06-25 19:27:53 +00:00 by Beuc · 2 comments
Beuc commented 2014-06-25 19:27:53 +00:00 (Migrated from github.com)

libffi.pc:

prefix=/usr/src/ndk-standalone-12-arm/sysroot/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
toolexeclibdir=$(libdir)
includedir=${libdir}/libffi-3.1/include

Name: libffi
Description: Library supporting Foreign Function Interfaces
Version: 3.1
Libs: -L${toolexeclibdir} -lffi
Cflags: -I${includedir}
$ ./pkgconf libffi --libs
-L(libdir) -lffi
# causes bash error at link time 
$ pkg-config libffi --libs
-L$(libdir) -lffi 
libffi.pc: ``` prefix=/usr/src/ndk-standalone-12-arm/sysroot/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib toolexeclibdir=$(libdir) includedir=${libdir}/libffi-3.1/include Name: libffi Description: Library supporting Foreign Function Interfaces Version: 3.1 Libs: -L${toolexeclibdir} -lffi Cflags: -I${includedir} ``` ``` $ ./pkgconf libffi --libs -L(libdir) -lffi # causes bash error at link time ``` ``` $ pkg-config libffi --libs -L$(libdir) -lffi ```

It is because the $ is being swallowed. I will fix it in 0.9.7.

It is because the `$` is being swallowed. I will fix it in 0.9.7.
Beuc commented 2014-07-02 17:56:55 +00:00 (Migrated from github.com)

Thanks!

$ ./pkgconf libffi --libs
-L$(libdir) -lffi  
Thanks! ``` $ ./pkgconf libffi --libs -L$(libdir) -lffi ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/pkgconf#67
There is no content yet.