1
1
Jeff Squyres 72e202a432 Fix two problems:
* OFED bug 249 (http://openib.org/bugzilla/show_bug.cgi?id=249) where
   Suse systems automatically add "-D_FORTIFY_SOURCE=2" to the
   RPM_OPT_FLAGS, which works fine when you're compiling with gcc.
   But not so much when using other compilers (_FORTIFY source
   silently changes the names of functions like memcpy() in an attempt
   to protect against buffer overflows, and uses a gcc __builtin
   thingy that results in undefined symbols when you compile/link with
   other compilers, such as icc -- as of 6 Oct 2006).  So do some
   horrid huersitics to see if we're using gcc, and if so, sed out any
   FORTIFY_SOURCE stuff in RPM_OPT_FLAGS.
 * If we're building a single rpm, don't bother creating the
   runtime.files and devel.files files.  And if we are making multiple
   RPMs, then ensure to end the pipe chain with /bin/true so that if
   the user specified --enable-static --disable-shared and the egrep
   for *.so files fails, the return status from egrep (1) doesn't
   cause RPM to barf.  Specifically, do this so that /bin/true's
   return value of 0 is always what rpmbuild sees, regardless of the
   return status of egrep:
{{{
find $RPM_BUILD_ROOT -type f -o -type l | \
   sed -e "s@$RPM_BUILD_ROOT@@" | \
   egrep "lib.*\.a|lib.*\.la" > devel.files | /bin/true
}}}

This commit was SVN r12051.
2006-10-06 19:26:44 +00:00
..
2006-10-06 19:26:44 +00:00
2006-08-10 15:08:11 +00:00
2005-12-20 13:29:51 +00:00