Lior Goldberg 3ec9226779 install: Do not remove compiler-defined RPATH entries
Some compilers may add their own RPATH entries when invoking the linker.
For example, a GCC installation may contain the following definition in
the specs file:

  *link_libgcc:
  %D -rpath <<some specific rpath in which libstdc++.so can be found>>

In this case binaries may contain RPATH entries that CMake did not add.
When we update the RPATH on installation we must preserve these entries
even if CMake thinks the INSTALL_RPATH value should be empty.

Fix this by always using file(RPATH_CHANGE) and teach it to behave as
file(RPATH_REMOVE) if the actual RPATH in the file is empty after
replacing the build-tree RPATH with the install-tree RPATH.  This will
preserve any compiler-added RPATH value instead of removing it.
2016-01-15 14:53:24 -05:00
..
2015-12-18 10:02:07 -05:00
2015-12-18 10:02:07 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2015-07-23 15:33:10 -04:00
2016-01-15 00:01:07 -05:00
2015-12-18 10:02:07 -05:00
2014-03-08 13:05:39 -05:00
2015-12-18 10:02:07 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2014-10-15 23:16:44 +02:00
2014-10-15 23:16:44 +02:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2015-11-04 09:15:14 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2015-11-25 10:33:26 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2014-03-11 15:03:50 +01:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2015-02-20 21:36:58 +01:00
2014-03-08 13:05:35 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2015-06-07 09:32:24 +02:00
2015-10-28 08:48:08 -04:00
2015-05-19 22:36:51 +02:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2014-03-08 13:05:39 -05:00
2015-04-13 11:44:15 -04:00
2015-12-18 10:02:07 -05:00
2015-10-26 22:30:13 +01:00