Fix --enable-libctf and --disable-static
[deliverable/binutils-gdb.git] / gdb / ctfread.c
index e296b133c2f487b9dd1043556c575335100a658c..f44cbecba09a282a53aa5542ba31f171aa41ac65 100644 (file)
@@ -81,6 +81,9 @@
 #include "block.h"
 #include "ctfread.h"
 #include "psympriv.h"
+
+#if ENABLE_LIBCTF
+
 #include "ctf.h"
 #include "ctf-api.h"
 
@@ -1485,3 +1488,13 @@ elfctf_build_psymtabs (struct objfile *of)
 
   scan_partial_symbols (fp, of);
 }
+
+#else
+
+void
+elfctf_build_psymtabs (struct objfile *of)
+{
+  /* Nothing to do if CTF is disabled.  */
+}
+
+#endif /* ENABLE_LIBCTF */
This page took 0.022989 seconds and 4 git commands to generate.