Merge openembedded@openembedded.bkbits.net:packages-devel
authorChris Larson <clarson@kergoth.com>
Tue, 9 Nov 2004 17:24:19 +0000 (17:24 +0000)
committerChris Larson <clarson@kergoth.com>
Tue, 9 Nov 2004 17:24:19 +0000 (17:24 +0000)
into handhelds.org:/home/kergoth/code/packages

2004/11/09 11:20:32-06:00 handhelds.org!kergoth
Add a few commented out lines to the sample local.conf, so that people know how to build a package for use with gprof.

BKrev: 4190fd43G6JHKkT9a9q13TmJl_mWlA

conf/local.conf.sample

index 9e61c9f..e161a7a 100644 (file)
@@ -113,6 +113,16 @@ PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross"
 # DEBUG_BUILD = "1"
 # INHIBIT_PACKAGE_STRIP = "1"
 
+# Uncomment these to build a package such that you can use gprof to profile it.
+# NOTE: This will only work with 'linux' targets, not
+# 'linux-uclibc', as uClibc doesn't provide the necessary
+# object files.  Also, don't build glibc itself with these
+# flags, or it'll fail to build.
+#
+# PROFILE_OPTIMIZATION = "-pg"
+# SELECTED_OPTIMIZATION = "${PROFILE_OPTIMIZATION}"
+# LDFLAGS =+ "-pg"
+
 # Uncomment this if you want OE to emit the log if a build fails.
 OEINCLUDELOGS = "yes"