r117 - in trunk/text: chapter01 chapter06

robert at linuxfromscratch.org robert at linuxfromscratch.org
Fri Jan 21 05:38:41 PST 2005


Author: robert
Date: 2005-01-21 06:38:41 -0700 (Fri, 21 Jan 2005)
New Revision: 117

Modified:
   trunk/text/chapter01/changelog.txt
   trunk/text/chapter06/13-gcc.txt
Log:
ldflags works better than cflags for -pie

Modified: trunk/text/chapter01/changelog.txt
===================================================================
--- trunk/text/chapter01/changelog.txt	2005-01-21 06:41:04 UTC (rev 116)
+++ trunk/text/chapter01/changelog.txt	2005-01-21 13:38:41 UTC (rev 117)
@@ -114,5 +114,6 @@
 Added a couple tests for relro and now.
 
 January 21st, 2005 [Robert]
-Added rdate to chapter 9, and bootscripts.
+Added rdate to chapter 9, and bootscripts. Using ldflags=-pie works better
+than cflags in chap6 gcc.
 

Modified: trunk/text/chapter06/13-gcc.txt
===================================================================
--- trunk/text/chapter06/13-gcc.txt	2005-01-21 06:41:04 UTC (rev 116)
+++ trunk/text/chapter06/13-gcc.txt	2005-01-21 13:38:41 UTC (rev 117)
@@ -30,8 +30,9 @@
 # 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="-pie -fPIC -fstack-protector-all -O2" \
-	CXXFLAGS="-pie -fPIC -fstack-protector-all -O2"
+make CFLAGS="-fPIC -fstack-protector-all -O2" \
+	CXXFLAGS="-fPIC -fstack-protector-all -O2" \
+	LDFLAGS="-pie"
 
 # 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