Bug#915148: [Pkg-cmake-team] Bug#915148: cmake: regression in ros-ros-comm build

Gianfranco Costamagna locutusofborg at debian.org
Wed Dec 5 10:36:22 GMT 2018



>catkin upstream would prefer to add -pthread instead of -lpthread to the 
>compiler flags. See the discussion here:
>
>https://github.com/ros/catkin/issues/856
>
>Would this be possible?

what about: 
|   elseif(${library} MATCHES "^-l")  |
|

  list(APPEND @PROJECT_NAME at _LIBRARIES ${library}) 
|   elseif(${library} MATCHES "^-p")  |
|

  list(APPEND @PROJECT_NAME at _LIBRARIES ${library})  

this way you can strip them both.BTW, -lpthread is generally wrong, and useful only to fix underlinking.The right thing to do is to add "-pthread" to CFLAGS, not to LDFLAGS
G.
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20181205/82eadde0/attachment-0001.html>


More information about the debian-science-maintainers mailing list