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.
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.
FS#15146 - [makepkg] add flag to unset cflags/ldflags
Attached to Project:
Pacman
Opened by Allan McRae (Allan) - Wednesday, 17 June 2009, 08:10 GMT
Last edited by Allan McRae (Allan) - Thursday, 30 December 2010, 01:42 GMT
Opened by Allan McRae (Allan) - Wednesday, 17 June 2009, 08:10 GMT
Last edited by Allan McRae (Allan) - Thursday, 30 December 2010, 01:42 GMT
|
DetailsSummary and Info:
Sometimes the default CFLAGS stop a package from building. This is even more prevalent with LDFLAGS. It would be good to have a flag to override them like is done with makeflags. |
This task depends upon
Closed by Allan McRae (Allan)
Thursday, 30 December 2010, 01:42 GMT
Reason for closing: Implemented
Additional comments about closing: http://projects.archlinux.org/users/alla n/pacman.git/commit/?id=2052f29c
Thursday, 30 December 2010, 01:42 GMT
Reason for closing: Implemented
Additional comments about closing: http://projects.archlinux.org/users/alla n/pacman.git/commit/?id=2052f29c
remove_makeflag '-j'
and it would leave everything else intact except for the '-j5' flag I have set, for instance? We could do something similar with cflags and ldflags:
remove_ldflag '--as-needed'
remove_cflag '-O2' (this would touch both cflags and cxxflags)
Please set me in my place if you think this is going too far.
Anyway it does not matter.
If you want to disable CFLAGS completely, maybe that's easy enough to do directly in the pkgbuild ? Like unset CFLAGS or CFLAGS="" ?
What seems more tricky is to remove something.
What if you want to remove "-j[ ]*[0-9]*" or "-O[ ]*[0-9]*" , that is any -j or -O settings ?
remove_cflag '-O'
This just implements complete clearing of CFLAGS, CXXFLAGS and LDFLAGS which is primarily useful for testing build issues. Clearing of individual flags seems too difficult to do properly.