Getting Clang to work.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I was trying to get clang to work in mock. I thought I would share how far I had gotten, before the end of the holidays and life picks up again. You can probably add -mstrict-align to the CFLAGS section for arm. This actually worked to build a few packages. (I also built a package to actually move symlink gcc to clang in case of hard coding, but I don't think it is needed.)


in your mock /etc/mock/fedora-20-xxx.cfg file you need to add something like:
config_opts['files']['etc/profile.d/mystuff.sh'] = """
export CC=clang
export CXX=clang
export CFLAGS="-std=gnu89 -O3 -g -mstackrealign -Wall " 
# ...
"""

and from the rpm package you need to edit /usr/lib/rpm/find-debuginfo.sh
something like: 
--- //usr/lib/rpm/find-debuginfo.sh    2013-09-09 08:11:23.000000000 -0400
+++ /home/so/find-debuginfo.sh    2014-01-01 12:32:25.360449406 -0500
@@ -53,6 +53,9 @@
   case "$1" in
   --strict-build-id)
     strict=true
+if [ ${CC} = "clang" ]; then
+    strict=false
+fi
     ;;
   --run-dwz)
     run_dwz=true

_______________________________________________
arm mailing list
arm@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/arm





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM (Vger)]     [Linux ARM]     [ARM Kernel]     [Fedora User Discussion]     [Older Fedora Users Discussion]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

Powered by Linux