rpms/stapitrace/devel stapitrace.spec,1.13,1.14

Dave Nomura dcnomura at fedoraproject.org
Fri Sep 12 00:28:25 UTC 2008


Author: dcnomura

Update of /cvs/pkgs/rpms/stapitrace/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv4537

Modified Files:
	stapitrace.spec 
Log Message:
look for libbfd



Index: stapitrace.spec
===================================================================
RCS file: /cvs/pkgs/rpms/stapitrace/devel/stapitrace.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- stapitrace.spec	4 Sep 2008 15:36:08 -0000	1.13
+++ stapitrace.spec	12 Sep 2008 00:27:55 -0000	1.14
@@ -38,6 +38,43 @@
 %patch0 -p1
 
 %build
+cat >>conftest.c <<_ACEOF
+/* confdefs.h.  */
+
+#define PACKAGE_NAME "Performance Inspector"
+#define PACKAGE_TARNAME "performance-inspector"
+#define PACKAGE_VERSION "3.4"
+#define PACKAGE_STRING "Performance Inspector 3.4"
+#define PACKAGE_BUGREPORT "mmilenko at us.ibm.com"
+#define PACKAGE "performance-inspector"
+#define VERSION "3.4"
+#define HAVE_LIBC 1
+#define HAVE_LIBDL 1
+#define HAVE_LIBIBERTY 1
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char bfd_get_elf_phdrs ();
+int
+main ()
+{
+bfd_get_elf_phdrs ();
+  ;
+  return 0;
+}
+_ACEOF
+ls -l /usr/lib/libbfd*
+file /usr/lib/libbfd*
+gcc -o conftest -g -O2 conftest.c -lbfd -liberty -ldl -lc
+gcc -o conftest -g -O2 conftest.c /usr/lib/libbfd.a -liberty -ldl -lc
+gcc -o conftest -g -O2 conftest.c /usr/lib/libbfd*.so -liberty -ldl -lc
+nm /usr/lib/libbfd.a | grep bfd_get_elf_phdrs 
+nm /usr/lib/libbfd*.so | grep bfd_get_elf_phdrs 
 autoreconf -i --force
 # override -m64
 export CFLAGS="%{__global_cflags} -mminimal-toc"	




More information about the fedora-extras-commits mailing list