[Bug 531] New: pkgconfig bug

For more infomation about this bug, visit
Summary: pkgconfig bug
Product: OCL
Version: 1.4.1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Build system
AssignedTo: orocos-dev [..] ...
ReportedBy: klaas [dot] gadeyne [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

There seems to be a bug in pkgconfig/cmake logic of the current the 1.4 branch.
After updating and reinstalling OCL 1.4.x today, I get

PKG_CONFIG_PATH=/home/kgad/install/ocl-1.4//lib/pkgconfig:/home/kgad/install/rtt-1.4//lib/pkgconfig
pkg-config orocos-ocl-xenomai --libs
-L/home/kgad/install/ocl-1.4/lib -L/home/kgad/install/rtt-1.4/lib
-L/home/kgad/install/xenomai/v2.3.x/lib -lorocos-deployment-xenomai
-lorocos-reporting-xenomai -lorocos-timer-xenomai -lorocos-taskbrowser-xenomai
-lorocos-ocl-common-xenomai -l-lncurses -lreadline -lorocos-rtt-xenomai
-lnative -lpthread -lxerces-c

Notice the extra -l in front of -lncurses

[Bug 531] pkgconfig bug

For more infomation about this bug, visit

Peter Soetens

<peter [dot] soetens [..] ...> changed:

What |Removed |Added
--------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED

--- Comment #3 from Peter Soetens

<peter [dot] soetens [..] ...> 2008-04-03 18:42:27 ---
Fixed in r29145 on trunk/ocl and branches/ocl/ocl-1.4

[Bug 531] pkgconfig bug

For more infomation about this bug, visit

Peter Soetens

<peter [dot] soetens [..] ...> changed:

What |Removed |Added
--------------------------------------------------------------------------
Attachment #258 is|0 |1
obsolete| |

--- Comment #2 from Peter Soetens

<peter [dot] soetens [..] ...> 2008-04-03 18:41:49 ---
Created an attachment (id=259)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=259)
Really fixes this bug.

Not only remove -l, bug also the quotes ("")

[Bug 531] pkgconfig bug

For more infomation about this bug, visit

Peter Soetens

<peter [dot] soetens [..] ...> changed:

What |Removed |Added
--------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|orocos- |peter [dot] soetens [..] ...
|dev [..] ... |

--- Comment #1 from Peter Soetens

<peter [dot] soetens [..] ...> 2008-04-03 18:29:50 ---
Created an attachment (id=258)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=258)
Removes the extra -l flags

I'll commit this to trunk and merge it on the ocl-1.4 branch.