-------- 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 <1203...@bugs.launchpad.net>
Reply-To: Bug 1203786 <1203...@bugs.launchpad.net>
To: cm...@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





--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to