Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#21750 - [makepkg] Add the possibility to set the compiler.

Attached to Project: Pacman
Opened by Simon (Giggi) - Friday, 19 November 2010, 21:03 GMT
Last edited by Allan McRae (Allan) - Monday, 13 December 2010, 02:12 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

I'm interested to the possibility to set the compiler in the
pkgbuild config file.

I desire to compile some package with icc (intel compiler) but in the file
/etc/makepkg.conf
don't exists the possibility to set a compiler different form gcc.

This task depends upon

Closed by  Allan McRae (Allan)
Monday, 13 December 2010, 02:12 GMT
Reason for closing:  Won't implement
Additional comments about closing:  Use environmental variables
Comment by Ionut Biru (wonder) - Friday, 19 November 2010, 21:13 GMT
export CC="whatever" inside the build function is one solution
Comment by Simon (Giggi) - Friday, 19 November 2010, 21:54 GMT
Yes it's a solution.
But it doesn't work if we try to compile with srcpac or yaourt.

I also don't think that is so difficult to add the variables CC and CXX in the makepkg.conf.



Comment by Allan McRae (Allan) - Saturday, 20 November 2010, 01:28 GMT
Hmm... is this needed?

> export CC=gcc-4.6
> makepkg
...
checking whether we are using the GNU C compiler... yes
checking whether gcc-4.6 accepts -g... yes
...


Comment by Simon (Giggi) - Thursday, 25 November 2010, 20:02 GMT
For example

export CC=icc
srcpac -Sb xyz
don't work.

It's not strictly necessary but is another useful option.

Comment by Allan McRae (Allan) - Thursday, 25 November 2010, 22:41 GMT
Can you give an actual example that does not work? All makepkg does is export those environmental variables. If the packages Makefile or PKGBUILD itself does not respect them, then it is going to make no difference whether we export it before calling makepkg or before calling the build() function...

Loading...