From ec58bd1a597a0d1fcb697125667592d535ede2cf Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Wed, 31 Aug 2016 10:29:44 +0100 Subject: [PATCH] icecream.spec: also add link to clang, clang++ and armv7l-tizen-linux-gnueabi-gcc When the package use autotools/libtool as build system it invokes armv7l-tizen-linux-gnueabi-gcc directly instead of gcc. So add armv7l-tizen-linux-gnueabi-gcc as a symbolic link to icecc in /opt/icecream/bin. Also add clang and clang++ since we at it. JIRA: https://bugs.tizen.org/jira/browse/TINF-1414 Change-Id: I206e50974972f11e48337ec3424d58f5a96f0ddd Signed-off-by: Julien Isorce --- packaging/icecream.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packaging/icecream.spec b/packaging/icecream.spec index 08d9fea..5dec5df 100644 --- a/packaging/icecream.spec +++ b/packaging/icecream.spec @@ -60,10 +60,17 @@ make %{?jobs:-j %jobs} %install make DESTDIR=$RPM_BUILD_ROOT install mkdir -p $RPM_BUILD_ROOT/opt/icecream/bin -for i in g++ gcc cc c++; do +for i in g++ gcc cc c++ clang clang++; do ln -s /usr/bin/icecc $RPM_BUILD_ROOT/opt/icecream/bin/$i rm -f $RPM_BUILD_ROOT/usr/bin/$i done +%ifarch armv7l +ln -s /usr/bin/icecc $RPM_BUILD_ROOT/opt/icecream/bin/armv7l-tizen-linux-gnueabi-gcc +%endif +%ifarch aarch64 +ln -s /usr/bin/icecc $RPM_BUILD_ROOT/opt/icecream/bin/aarch64-tizen-linux-gnueabi-gcc +%endif + # # Install icecream init script mkdir -p $RPM_BUILD_ROOT/etc/init.d/ -- 2.7.4