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]

Re: PATCH for COLLECT2 (revised)


Can we use pexecute.c instead of conditionalizing the code in collect2.c?

Is it actually necessary to change / to \?  I thought DOS accepted both.

I don't think it'll work to do

  system ("cd foo");
  system ("do stuff in foo");

On Unix, at least, the first call has no effect.  I think you should
change the code to use chdir(3) instead.  That way you won't need to
conditionalize it.

Jason


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