summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Isorce <j.isorce@samsung.com>2016-08-31 10:29:44 +0100
committerJulien Isorce <j.isorce@samsung.com>2016-08-31 10:34:15 +0100
commitec58bd1a597a0d1fcb697125667592d535ede2cf (patch)
tree297f0f5f57afdd05c420ec7a4de4c8f7351fe98b
parentc2aa542a8723381a336e4e3ecdc7ccbe764013da (diff)
downloadicecream-ec58bd1a597a0d1fcb697125667592d535ede2cf.tar.gz
icecream-ec58bd1a597a0d1fcb697125667592d535ede2cf.tar.bz2
icecream-ec58bd1a597a0d1fcb697125667592d535ede2cf.zip
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 <j.isorce@samsung.com>
-rw-r--r--packaging/icecream.spec9
1 files changed, 8 insertions, 1 deletions
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/