Ajout support pour flags MARCH_FLAGS à partir du stage2
authorgobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Mon, 7 Mar 2011 05:00:20 +0000 (05:00 +0000)
committergobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Mon, 7 Mar 2011 05:00:20 +0000 (05:00 +0000)
stage1/create-config-files

index bf8780c..36596ba 100755 (executable)
@@ -52,7 +52,7 @@ HISTFILESIZE=1000
 HISTSIZE=1000
 HOSTNAME=`hostname`
 EDITOR=_DEFAULT_EDITOR_
-CFLAGS="-pipe -O2"
+CFLAGS=_DEFAULT_CFLAGS_
 CXXFLAGS=${CFLAGS}
 
 # Set default permissions when creating new files.
@@ -90,6 +90,8 @@ EOF
 
 sed -i -e "s!_DEFAULT_EDITOR_!${DEFAULT_EDITOR}!g" ${LFS}/etc/profile
 
+sed -i -e "s!_DEFAULT_CFLAGS_!-pipe -O2 ${MARCH_FLAGS}!g" ${LFS}/etc/profile
+
 echo "Creating /etc/bashrc"
 cat > ${LFS}/etc/bashrc << "EOF"
 #!/bin/bash