
Hello community, here is the log from the commit of package autofdo for openSUSE:Factory checked in at 2017-02-21 13:50:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/autofdo (Old) and /work/SRC/openSUSE:Factory/.autofdo.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "autofdo" Changes: -------- --- /work/SRC/openSUSE:Factory/autofdo/autofdo.changes 2016-11-12 13:00:37.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.autofdo.new/autofdo.changes 2017-02-21 13:50:14.785231545 +0100 @@ -1,0 +2,9 @@ +Sat Feb 18 08:11:58 UTC 2017 - mpluskal@suse.com + +- Enable llvm support: + * Add autofdo-rpath.patch +- Packaging changes: + * Use pretty name of tarball + * Update dependencies + +------------------------------------------------------------------- Old: ---- v0.15.tar.gz New: ---- autofdo-0.15.tar.gz autofdo-rpath.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ autofdo.spec ++++++ --- /var/tmp/diff_new_pack.ZBnIZU/_old 2017-02-21 13:50:18.208749720 +0100 +++ /var/tmp/diff_new_pack.ZBnIZU/_new 2017-02-21 13:50:18.212749157 +0100 @@ -1,7 +1,7 @@ # # spec file for package autofdo # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -23,11 +23,18 @@ License: Apache-2.0 Group: Development/Tools/Other Url: https://github.com/google/autofdo -Source: https://github.com/google/%{name}/archive/v%{version}.tar.gz +Source: https://github.com/google/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM -- autofdo-rpath.patch +Patch0: autofdo-rpath.patch BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: libopenssl-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: libunwind-devel +BuildRequires: zlib-devel +%if 0%{?suse_version} > 1320 +BuildRequires: clang-devel +BuildRequires: llvm-devel +%endif %description The repository contains a tool to convert perf.data profile to AutoFDO @@ -41,15 +48,15 @@ %prep %setup -q +%patch0 -p1 %build -aclocal -automake +autoreconf -fiv %configure make %{?_smp_mflags} %install -make %{?_smp_mflags} DESTDIR=%{buildroot} install +%make_install %files %defattr(-,root,root) ++++++ autofdo-rpath.patch ++++++
Instruct the compiler to send the -rpath flag to the linker, otherwise the compiler fails like this: g++: error: unrecognized command line option ‘-rpath’ --- configure | 2 +- m4/ax_llvm.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index f38717f..421411f 100755 --- a/configure +++ b/configure @@ -4804,7 +4804,7 @@ fi -ldl -lpthread -ltinfo" elif test "x$shared_mode" = "xshared"; then rpath="$($ac_llvm_config_path --libdir)" - LLVM_LDFLAGS="-rpath $rpath \ + LLVM_LDFLAGS="-Wl,-rpath $rpath \ $($ac_llvm_config_path --ldflags) \ $($ac_llvm_config_path --libs ProfileData)" fi diff --git a/m4/ax_llvm.m4 b/m4/ax_llvm.m4 index 6df84a5..194a7a2 100644 --- a/m4/ax_llvm.m4 +++ b/m4/ax_llvm.m4 @@ -67,7 +67,7 @@ AC_DEFUN([AX_LLVM], -ldl -lpthread -ltinfo" elif test "x$shared_mode" = "xshared"; then rpath="$($ac_llvm_config_path --libdir)" - LLVM_LDFLAGS="-rpath $rpath \ + LLVM_LDFLAGS="-Wl,-rpath $rpath \ $($ac_llvm_config_path --ldflags) \ $($ac_llvm_config_path --libs $1)" fi
participants (1)
-
root@hilbertn.suse.de