This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

collect2 aix cross building


Cross building collect2 for powerpc-ibm-aix4.3.3 fails because the
resolve_lib_name function is hidden by the #ifdef OBJECT_FORMAT_COFF.

This patch removes the #ifdef for COLLECT_EXPORT_LIST functions.

--
Tom Rix
GCC Engineer
trix@redhat.com


2002-03-12  Tom Rix  <trix@redhat.com>

	* collect2.c (resolve_lib_name): Move outside of
	OBJECT_FORMAT_COFF ifdef. 
	(ignore_library): Same.
 
diff -rcp gcc-old/gcc/collect2.c gcc/gcc/collect2.c
*** gcc-old/gcc/collect2.c	Tue Mar 12 11:23:21 2002
--- gcc/gcc/collect2.c	Tue Mar 12 12:18:39 2002
*************** scan_prog_file (prog_name, which_pass)
*** 2861,2867 ****
    (void) ldclose(ldptr);
  #endif
  }
! 
  
  #ifdef COLLECT_EXPORT_LIST
  /* Given a library name without "lib" prefix, this function
--- 2861,2867 ----
    (void) ldclose(ldptr);
  #endif
  }
! #endif /* OBJECT_FORMAT_COFF */
  
  #ifdef COLLECT_EXPORT_LIST
  /* Given a library name without "lib" prefix, this function
*************** ignore_library (name)
*** 2941,2949 ****
      if (! strcmp (name, *p)) return 1;
    return 0;
  }
! #endif
! 
! #endif /* OBJECT_FORMAT_COFF */
  
  
  /*
--- 2941,2947 ----
      if (! strcmp (name, *p)) return 1;
    return 0;
  }
! #endif /* COLLECT_EXPORT_LIST */
  
  
  /*

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