Merge lp:~vanvugt/compiz-core/fix-928044 into lp:compiz-core

Proposed by Daniel van Vugt
Status: Merged
Merged at revision: 2984
Proposed branch: lp:~vanvugt/compiz-core/fix-928044
Merge into: lp:compiz-core
Diff against target: 25 lines (+2/-3)
2 files modified
cmake/CompizPlugin.cmake (+1/-2)
compiz.pc.in (+1/-1)
To merge this branch: bzr merge lp:~vanvugt/compiz-core/fix-928044
Reviewer Review Type Date Requested Status
Sam Spilsbury Approve
Review via email: mp+91769@code.launchpad.net

Commit message

Use correct library dirs to avoid plugin build failures (LP: #928044)

To post a comment you must log in.
Revision history for this message
Sam Spilsbury (smspillaz) wrote :

This is strange - I added that in order to fix a build failure with c-p-m that I was having. Perhaps something has changed?

review: Approve
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes, I think the thing that changed was the introduction of libcompiz_core as a shared library. Because the builds worked perfectly before that.

The compiz.pc.in fix was enough to stop the build failing in 'text'. But then it was still failing in 'mousepoll' because mousepoll had somehow automagically lost the -L${prefix}/usr/lib it gets from compiz.pc and so couldn't find libcompiz_core.

${libdir} is subject to change depending on which package you're building. For plugins, ${libdir} is the plugins directory. So of course, the linker can't find libcompiz_core there. That's why we need to use the unambiguous COMPIZ_LIBDIR instead of libdir.

Revision history for this message
Sam Spilsbury (smspillaz) wrote :

Alright, +1

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cmake/CompizPlugin.cmake'
2--- cmake/CompizPlugin.cmake 2012-01-23 17:33:54 +0000
3+++ cmake/CompizPlugin.cmake 2012-02-07 06:45:22 +0000
4@@ -363,9 +363,8 @@
5 ${COMPIZ_LINK_DIRS}
6 ${${_PLUGIN}_PKG_LIBDIRS}
7 ${${_PLUGIN}_LIBDIRS}
8+ ${COMPIZ_LIBDIR}
9 ${PLUGIN_LIBDIR}
10- ${libdir}
11- ${COMPIZ_LIBDIR}/compiz
12 ${${_PLUGIN}_MOD_LIBRARY_DIRS}
13 ${SYSTEM_LINK_DIRS}
14 )
15
16=== modified file 'compiz.pc.in'
17--- compiz.pc.in 2008-10-06 17:11:30 +0000
18+++ compiz.pc.in 2012-02-07 06:45:22 +0000
19@@ -8,5 +8,5 @@
20 Version: @VERSION@
21
22 Requires: @COMPIZ_REQUIRES@
23-Libs:
24+Libs: -L${libdir} -lcompiz_core
25 Cflags: @COMPIZ_CFLAGS@ -I${includedir}/compiz

Subscribers

People subscribed via source and target branches