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]

RFA: don't pass -fpic flag on Windows



2002-03-07  Jim Blandy  <jimb@redhat.com>

	* gdb.base/shlib-call.exp: Don't pass the `-fpic' flag to gcc when
	compiling under Cygwin.

Index: gdb/testsuite/gdb.base/shlib-call.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.base/shlib-call.exp,v
retrieving revision 1.6
diff -c -r1.6 shlib-call.exp
*** gdb/testsuite/gdb.base/shlib-call.exp	2001/03/26 19:55:27	1.6
--- gdb/testsuite/gdb.base/shlib-call.exp	2002/03/07 19:50:37
***************
*** 62,76 ****
  # Build the shared libraries this test case needs.
  #
  
! if {$gcc_compiled == 0} {
!     if [istarget "hppa*-hp-hpux*"] then {
! 	set additional_flags "additional_flags=+z"
      } else {
! 	# don't know what the compiler is...
! 	set additional_flags ""
      }
  } else {
!     set additional_flags "additional_flags=-fpic"
  }
  
  if {[gdb_compile "${srcdir}/${subdir}/${libfile}1.c" "${objdir}/${subdir}/${libfile}1.o" object [list debug $additional_flags]] != ""} {
--- 62,81 ----
  # Build the shared libraries this test case needs.
  #
  
! if {$gcc_compiled} {
!     if {[istarget "*-*-cygwin*"]} {
!         set additional_flags ""
      } else {
!         set additional_flags "additional_flags=-fpic"
      }
  } else {
!     # We assume we're using the native compiler.  What else is there?
!     if {[istarget "hppa*-hp-hpux*"]} {
!         set additional_flags "additional_flags=+z"
!     } else {
!         # don't know what the compiler is...
!         set additional_flags ""
!     }
  }
  
  if {[gdb_compile "${srcdir}/${subdir}/${libfile}1.c" "${objdir}/${subdir}/${libfile}1.o" object [list debug $additional_flags]] != ""} {


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