You are not logged in.
From the wiki https://wiki.archlinux.org/title/Makepk … es_and_LTO, i have to `OPTIONS=(...!debug !lto...)` but to add those i have copy the whole line which creates a situation where if i do in a drop in file, future defaults won't get applied or if do in /etc/makepkg.conf, i will have to pacdiff everytime the /etc/makepkg.conf gets updated.
Are there any other way to do this where i get new defaults and to override only spedific value.
Offline
It's a bash array, https://stackoverflow.com/questions/168 … bash-array
Offline
Does removing the value (lto & debug ) from the OPTIONS=( ) enough? Because in docs it saying to add a "!" character directly in front of them.
This will make it easier as i won't have to first delete those values and add them again with "!" prepended.
Last edited by phoenix324 (Today 11:09:22)
Offline
You could just traverse the array and replace the undesired key resp. ultimately add what you want.
The easiest way however would be to build a new array by copying the old elements, skipping the undesired ones and appending yours.
Offline