Files
buildroot/package
Valentin Korenblit 4f9e3989f3 package/llvm: remove $ORIGIN/../lib from RPATH
AddLLVM.cmake adds $ORIGIN/../lib to the RPATH of llvm binaries.  This
causes a problem when llvm-config built for the host, installed in
STAGING_DIR, is executed under the following conditions:

* Target architecture same as host architecture (normally x86_64)
* Target's libc different from host's libc (normally glibc)

llvm-config will try to link with the target's libc, resulting in:

./llvm-config: error while loading shared libraries: libc.so.0: cannot open shared object file: No such file or directory.

To avoid this, we simply add pass
-DCMAKE_INSTALL_RPATH="$(HOST_DIR)/lib" in HOST_LLVM_CONF_OPTS.

Link to discussion:

  http://lists.busybox.net/pipermail/buildroot/2018-April/218627.html

Fixes:

  http://autobuild.buildroot.net/results/b81c12d529c66a028e2297ea5ce1d6930324fa69/

Signed-off-by: Valentin Korenblit <valentin.korenblit@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-04-12 21:12:51 +02:00
..
2018-03-01 23:19:20 +01:00
2018-04-01 16:22:25 +02:00
2018-02-02 11:58:01 +01:00
2018-01-29 14:39:17 +01:00
2018-03-02 08:38:33 +01:00
2018-02-03 19:57:10 +01:00
2018-03-05 21:04:14 +01:00
2018-03-30 08:30:51 +02:00
2018-02-27 22:22:14 +01:00
2018-01-22 22:28:11 +01:00
2018-01-16 23:10:09 +01:00
2018-04-03 23:17:53 +02:00
2018-03-29 16:05:54 +02:00
2018-04-09 23:42:28 +02:00
2018-04-04 22:00:37 +02:00
2018-03-02 08:36:45 +01:00
2018-03-23 16:23:20 +01:00
2018-03-03 23:26:08 +01:00
2018-03-23 16:23:57 +01:00
2018-02-27 21:34:36 +01:00
2018-01-23 15:32:32 +01:00
2018-02-13 22:07:04 +01:00
2018-03-23 16:29:22 +01:00
2018-03-23 16:29:22 +01:00
2018-03-17 09:36:47 +01:00
2018-01-29 22:27:19 +01:00
2018-02-20 09:04:53 +01:00
2018-01-25 21:30:01 +01:00
2018-01-15 22:41:37 +01:00
2018-03-29 18:11:07 +02:00
2018-04-02 15:45:02 +02:00
2018-03-19 09:26:58 +01:00
2018-04-01 13:53:59 +02:00
2018-02-28 20:44:53 +01:00
2018-03-01 14:04:40 +01:00
2018-02-19 20:55:27 +01:00
2018-03-08 09:05:51 +01:00
2018-04-01 14:38:35 +02:00
2018-01-27 11:14:16 +01:00
2018-04-01 21:00:31 +02:00
2018-03-24 11:54:39 +01:00
2018-02-19 20:51:49 +01:00
2018-03-06 15:44:18 +01:00
2018-02-28 20:45:08 +01:00
2018-04-05 21:04:31 +02:00
2018-04-09 11:18:29 +02:00
2018-03-05 21:22:00 +01:00
2018-04-09 11:16:40 +02:00
2018-03-26 23:18:16 +02:00
2018-03-08 09:05:26 +01:00
2018-03-09 22:26:30 +01:00
2018-04-09 22:51:43 +02:00
2018-03-05 21:04:14 +01:00
2018-04-09 11:23:11 +02:00
2018-02-08 23:05:21 +01:00
2018-04-09 11:12:54 +02:00
2018-01-28 23:33:31 +01:00
2018-04-02 16:32:27 +02:00
2018-03-13 23:27:14 +01:00
2018-02-08 23:05:44 +01:00
2018-02-14 22:05:26 +01:00
2018-04-06 22:18:57 +02:00
2018-03-10 22:24:09 +01:00
2018-04-04 22:56:03 +02:00
2018-03-04 10:15:25 +01:00
2018-02-10 10:12:54 +01:00
2018-01-23 08:33:39 +01:00
2018-01-16 23:15:54 +01:00
2018-04-02 10:13:14 +02:00
2018-03-18 15:16:46 +01:00
2018-02-25 23:00:51 +01:00
2018-03-05 21:04:14 +01:00
2018-04-01 22:08:14 +02:00
2018-03-06 11:03:12 +01:00
2018-03-06 11:05:25 +01:00
2018-04-10 14:53:34 +02:00
2018-04-02 18:29:46 +02:00
2018-01-07 15:13:53 +01:00
2018-04-03 22:43:55 +02:00
2018-04-10 09:28:46 +02:00
2018-03-30 21:43:31 +02:00
2018-03-30 21:48:18 +02:00
2018-04-09 20:59:02 +02:00
2018-01-17 22:36:35 +01:00
2018-01-17 22:36:21 +01:00
2018-03-31 09:24:39 +02:00
2018-03-05 21:04:14 +01:00
2018-04-03 15:50:39 +02:00
2018-02-05 07:08:42 +01:00
2018-01-17 23:37:56 +01:00
2018-03-01 23:29:18 +01:00
2018-04-01 14:16:50 +02:00
2018-03-08 09:05:22 +01:00
2018-02-08 22:15:41 +01:00
2018-01-22 22:32:41 +01:00
2018-03-09 22:24:25 +01:00
2018-02-13 23:09:47 +01:00
2018-02-26 23:42:56 +01:00
2018-02-08 23:07:07 +01:00
2018-01-07 21:37:09 +01:00
2018-01-07 21:37:12 +01:00
2018-01-07 21:37:11 +01:00
2018-03-06 11:03:51 +01:00
2018-01-17 14:07:03 +01:00
2018-03-29 21:19:54 +02:00
2018-03-29 16:06:14 +02:00
2018-04-04 22:55:38 +02:00
2018-03-18 23:28:32 +01:00
2018-04-03 15:44:16 +02:00
2018-04-03 15:44:16 +02:00
2018-03-24 11:37:51 +01:00
2018-01-12 19:53:00 +01:00
2018-02-03 08:24:48 +01:00
2018-02-06 17:05:35 +01:00
2018-04-06 22:18:59 +02:00
2018-02-03 20:31:13 +01:00
2018-02-03 20:05:59 +01:00
2018-02-08 22:04:53 +01:00
2018-03-31 09:05:24 +02:00
2018-04-04 22:53:33 +02:00
2018-02-05 18:18:16 +01:00
2018-04-11 16:18:41 +02:00
2018-03-01 23:16:34 +01:00
2018-03-27 09:46:38 +02:00
2018-01-26 13:38:43 +01:00
2018-04-07 13:43:47 +02:00
2018-02-19 20:32:43 +01:00
2018-04-10 14:53:32 +02:00
2018-03-30 22:02:03 +02:00
2018-03-08 09:34:35 +01:00
2018-04-09 21:56:48 +02:00
2018-04-09 22:05:31 +02:00