|
|
@ -0,0 +1,23 @@ |
|
|
|
|
|
|
|
Taken from: |
|
|
|
http://www.bitshrine.org/gpp/oprofile-0.9.2-bfd_get_synthetic_symtab-hack.patch |
|
|
|
|
|
|
|
diff --exclude CVS -uNr oprofile-0.9.2/configure oprofile-0.9.2.modified/configure
|
|
|
|
--- oprofile-0.9.2/configure 2006-09-15 19:32:06.000000000 +0100
|
|
|
|
+++ oprofile-0.9.2.modified/configure 2007-01-08 15:38:39.000000000 +0000
|
|
|
|
@@ -5613,6 +5613,15 @@
|
|
|
|
|
|
|
|
_ACEOF |
|
|
|
$CC conftest.$ac_ext $LIBS -o test-for-synth > /dev/null 2>&1 |
|
|
|
+# Hack to force SYNTHESIZE_SYMBOLS to 0. - stevep
|
|
|
|
+# This is to prevent the following build errors on the imx31 when using
|
|
|
|
+# binutils > 2.15:
|
|
|
|
+# undefined reference to `bfd_elf64_powerpc_vec'
|
|
|
|
+# undefined reference to `bfd_elf64_powerpcle_vec'
|
|
|
|
+#
|
|
|
|
+# Not sure that this is the correct fix, need some more investigation!!
|
|
|
|
+rm -f test-for-synth
|
|
|
|
+
|
|
|
|
if test -f test-for-synth; then |
|
|
|
echo "yes" |
|
|
|
SYNTHESIZE_SYMBOLS='1' |