Hello,

the opensuse build service has some useful internal checks of the built rpms, 
one of those told me that the file gigaslam.c is being compiled without the
$RPM_OPT_FLAGS.

this can be solved with the attached patch, where the call of compiling 
gigaslam.c is now using also $(CFLAGS) like all other compiler calls do.

I built the package on CentOS_5         Fedora_10       Fedora_11       RHEL_4  
        RHEL_5 
SLE_11          openSUSE_11.0   openSUSE_11.1   openSUSE_11.2   openSUSE_Factory

with this patch without problems. 

I hope you find this patch useful, 

best regards,

Philipp
diff -ruN bacula-5.0.0.orig//src/tools/Makefile.in bacula-5.0.0//src/tools/Makefile.in
--- bacula-5.0.0.orig//src/tools/Makefile.in	2010-01-25 08:56:28.000000000 +0100
+++ bacula-5.0.0//src/tools/Makefile.in	2010-02-03 11:27:44.000000000 +0100
@@ -108,7 +108,7 @@
 	  -lbacsql -lbacfind -lbac -lm $(DB_LIBS) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS)
 
 gigaslam.o: gigaslam.c
-	$(CC) -c $<  
+	$(CC) $(CFLAGS) -c $<  
 
 gigaslam: gigaslam.o
 	$(CC) -o $@ gigaslam.o
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to