{"action":"created","issue":{"url":"https://api.github.com/repos/libical/libical/issues/227","repository_url":"https://api.github.com/repos/libical/libical","labels_url":"https://api.github.com/repos/libical/libical/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/libical/libical/issues/227/comments","events_url":"https://api.github.com/repos/libical/libical/issues/227/events","html_url":"https://github.com/libical/libical/issues/227","id":131336762,"number":227,"title":"Fix libicu linkage in libical.pc","user":{"login":"rossburton","id":32394,"avatar_url":"https://avatars.githubusercontent.com/u/32394?v=3","gravatar_id":"","url":"https://api.github.com/users/rossburton","html_url":"https://github.com/rossburton","followers_url":"https://api.github.com/users/rossburton/followers","following_url":"https://api.github.com/users/rossburton/following{/other_user}","gists_url":"https://api.github.com/users/rossburton/gists{/gist_id}","starred_url":"https://api.github.com/users/rossburton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossburton/subscriptions","organizations_url":"https://api.github.com/users/rossburton/orgs","repos_url":"https://api.github.com/users/rossburton/repos","events_url":"https://api.github.com/users/rossburton/events{/privacy}","received_events_url":"https://api.github.com/users/rossburton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-04T12:49:17Z","updated_at":"2016-04-19T14:37:16Z","closed_at":null,"body":"I'm cross-compiling libical in a sysroot and the installed libical.pc looks like this:\r\n\r\n```\r\nprefix=/usr\r\nexec_prefix=${prefix}\r\nlibdir=${exec_prefix}/lib\r\nincludedir=${prefix}/include\r\nthreadslib=-lpthread\r\niculib=/data/poky-master/tmp-glibc/sysroots/intel-corei7-64/usr/lib/libicuuc.so /data/poky-master/tmp-glibc/sysroots/intel-corei7-64/usr/lib/libicui18n.so\r\n\r\nName: libical\r\nDescription: An implementation of basic iCAL protocols\r\nVersion: 2.0\r\nLibs: -L${libdir} -lical -licalss -licalvcal ${threadslib} ${iculib}\r\nCflags: -I${includedir}\r\n```\r\n\r\nAs you can see the iculib variable doesn't contain `-licuuc -licui18n` but the full paths to the libraries inside the sysroot.  Apart from being ugly, this breaks when the sysroot is moved."},"comment":{"url":"https://api.github.com/repos/libical/libical/issues/comments/211951204","html_url":"https://github.com/libical/libical/issues/227#issuecomment-211951204","issue_url":"https://api.github.com/repos/libical/libical/issues/227","id":211951204,"user":{"login":"KrullKorg","id":4976455,"avatar_url":"https://avatars.githubusercontent.com/u/4976455?v=3","gravatar_id":"","url":"https://api.github.com/users/KrullKorg","html_url":"https://github.com/KrullKorg","followers_url":"https://api.github.com/users/KrullKorg/followers","following_url":"https://api.github.com/users/KrullKorg/following{/other_user}","gists_url":"https://api.github.com/users/KrullKorg/gists{/gist_id}","starred_url":"https://api.github.com/users/KrullKorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrullKorg/subscriptions","organizations_url":"https://api.github.com/users/KrullKorg/orgs","repos_url":"https://api.github.com/users/KrullKorg/repos","events_url":"https://api.github.com/users/KrullKorg/events{/privacy}","received_events_url":"https://api.github.com/users/KrullKorg/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T14:37:16Z","updated_at":"2016-04-19T14:37:16Z","body":"i don't know how cmake works so i cannot help, but i think it is better to use pkg-config, if the version of libicu provides it"}}