Bonjour à toutes et à tous,
Le dernier makepkg.conf.pacnew apporte plusieurs modifications au fichier makepkg.conf existant...
Elles portent sur les flags utilisés lors de la compilation.
J'aimerai savoir si elles ont un réel impact sur les futures compilations ou si je peux me contenter de l'existant.
En clair, faut-il accepter les modifications proposées ?
J'avoue ne pas avoir toutes les connaissances nécessaires pour trancher !
Voilà les différences que je peux observer entre mon fichier actuel et le pacnew...
Pour faciliter la comparaison, j'ai numéroté les lignes :
----- Mon fichier actuel -----
----- makepkg.conf.pacnew -----01 #-- Compiler and Linker Flags
02 CPPFLAGS="-D_FORTIFY_SOURCE=2"
03 CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
04 CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
05 LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
06 #-- Make Flags: change this for DistCC/SMP systems
07 #MAKEFLAGS="-j2"
08 #-- Debugging flags
09 DEBUG_CFLAGS="-g -fvar-tracking-assignments"
10 DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
-----------01 #-- Compiler and Linker Flags
02 #CPPFLAGS=""
03 CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
04 -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
05 -fstack-clash-protection -fcf-protection"
06 CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
07 LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
08 LTOFLAGS="-flto=auto"
09 #RUSTFLAGS="-C opt-level=2"
10 #-- Make Flags: change this for DistCC/SMP systems
11 #MAKEFLAGS="-j2"
12 #-- Debugging flags
13 DEBUG_CFLAGS="-g"
14 DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
15 #DEBUG_RUSTFLAGS="-C debuginfo=2"
Ce sont les lignes 2-5 et 9-10 de mon fichier actuel qui devraient être modifiées par les lignes 3-8 et 13-14 du pacnew
je ne suis manifestement pas le seul à me poser la question, voir le topic suivant sur le forum anglais d'ArchLinux
what debug flags are useful for most packages besides -g ?
https://bbs.archlinux.org/viewtopic.php?id=274720
Un avis sur la question ?
D'avance, merci !