[cmake-developers] Fwd: [Bug 1203786] [NEW] Invalid handling of linker flags during build
Bill Hoffman
bill.hoffman at kitware.com
Mon Jul 22 12:32:12 EDT 2013
-------- Original Message --------
Subject: [Bug 1203786] [NEW] Invalid handling of linker flags during build
Date: Mon, 22 Jul 2013 15:31:47 -0000
From: Rodney Dawes <1203786 at bugs.launchpad.net>
Reply-To: Bug 1203786 <1203786 at bugs.launchpad.net>
To: cmake at packages.qa.debian.org
Public bug reported:
When building a project using cmake, which contains a shared library,
and any code which uses that shared library, such as test programs,
installed application, or plug-ins for other applications or libraries,
cmake incorrectly applies all of the linker flags from the shared
library, to all of the resulting objects which depend on it. This makes
using certain linker features, such as version scripts, very
problematic.
This problem is then compounded when building with a builddir != srcdir
setup, as the possible workaround of using a relative file name for
--version-script and including an additional version script which
exports all the symbols, cannot be used.
The linker flags for a shared library should never be copied over to the
other targets which depend upon that library.
** Affects: cmake (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1203786
Title:
Invalid handling of linker flags during build
Status in “cmake” package in Ubuntu:
New
Bug description:
When building a project using cmake, which contains a shared library,
and any code which uses that shared library, such as test programs,
installed application, or plug-ins for other applications or
libraries, cmake incorrectly applies all of the linker flags from the
shared library, to all of the resulting objects which depend on it.
This makes using certain linker features, such as version scripts,
very problematic.
This problem is then compounded when building with a builddir !=
srcdir setup, as the possible workaround of using a relative file name
for --version-script and including an additional version script which
exports all the symbols, cannot be used.
The linker flags for a shared library should never be copied over to
the other targets which depend upon that library.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/1203786/+subscriptions
More information about the cmake-developers
mailing list