This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Allow compilation by IBM'x xlc compiler - gdb1555_exp


2005-04-01  Paul Gilliam  <pgilliam@us.ibm.com>

        * gdb.base/gdb1555.exp: Allow for compilation by IBM's xlc compiler.

Index: gdb.base/gdb1555.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/gdb1555.exp,v
retrieving revision 1.1
diff -c -3 -p -r1.1 gdb1555.exp
*** gdb.base/gdb1555.exp	18 Feb 2004 03:35:08 -0000	1.1
--- gdb.base/gdb1555.exp	1 Apr 2005 20:11:03 -0000
*************** if {$gcc_compiled == 0} {
*** 63,69 ****
      }
  }
  
! set additional_flags "$additional_flags -shared"
  if {[gdb_compile "${srcdir}/${subdir}/${libfile}.c" "${objdir}/${subdir}/${libfile}.so" executable [list debug $additional_flags "incdir=${objdir}"]] != ""} {
      return -1
  }
--- 63,74 ----
      }
  }
  
! if { [test_compiler_info "xlc-*"] } {
!     set additional_flags "additional_flags=-qmkshrobj"
! } else {
!     set additional_flags "additional_flags=-shared"
! }
! 
  if {[gdb_compile "${srcdir}/${subdir}/${libfile}.c" "${objdir}/${subdir}/${libfile}.so" executable [list debug $additional_flags "incdir=${objdir}"]] != ""} {
      return -1
  }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]