r120 - trunk/text/chapter06

robert at linuxfromscratch.org robert at linuxfromscratch.org
Fri Jan 21 11:40:56 PST 2005


Author: robert
Date: 2005-01-21 12:40:55 -0700 (Fri, 21 Jan 2005)
New Revision: 120

Modified:
   trunk/text/chapter06/13-gcc.txt
Log:
oops. we use cflags=-pie because it affects which startfiles it links, ldflags doesn't

Modified: trunk/text/chapter06/13-gcc.txt
===================================================================
--- trunk/text/chapter06/13-gcc.txt	2005-01-21 16:20:53 UTC (rev 119)
+++ trunk/text/chapter06/13-gcc.txt	2005-01-21 19:40:55 UTC (rev 120)
@@ -30,9 +30,8 @@
 # default on the host's gcc. The -fstack-protector in CXXFLAGS is needed
 # because the new g++ is built with the new gcc.
 
-make CFLAGS="-fPIC -fstack-protector-all -O2" \
-	CXXFLAGS="-fPIC -fstack-protector-all -O2" \
-	LDFLAGS="-pie"
+make CFLAGS="-pie -fPIC -fstack-protector-all -O2" \
+	CXXFLAGS="-pie -fPIC -fstack-protector-all -O2"
 
 # Run the testsuite if you like. The results should be identical to results
 # you would typically get from an LFS build. There is an SSP test in




More information about the hlfs-dev mailing list