Changeset 488 for trunk/src/emx/src/emxomf/emxomfld.c
- Timestamp:
- Jul 31, 2003, 4:45:07 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/emxomf/emxomfld.c
-
Property cvs2svn:cvs-rev
changed from
1.12
to1.13
r487 r488 468 468 */ 469 469 470 static FILE * find_objlib(char *pszfullname, const char *pszname, 471 const char * const *papszexts, int flibhacks) 470 static FILE * find_objlib2(char *pszfullname, const char *pszname, const char * const *papszexts, int flibhacks) 472 471 { 473 472 const char * psz; … … 544 543 phFile = fopen (pszfullname, "rb"); 545 544 545 if (!flibhacks && phFile) 546 return phFile; 547 546 548 if (phFile) 547 549 { … … 556 558 } libhdr; 557 559 #pragma pack() 558 if (!flibhacks)559 return phFile;560 560 /* For .a libraries we will chech for a valid OMF library header. */ 561 561 if (memicmp(pszfullname + strlen(pszfullname) - 2, ".a", 3)) 562 562 return phFile; 563 if ( fread(&libhdr, 1, sizeof(libhdr), phFile) == sizeof(libhdr)563 if ( fread(&libhdr, 1, sizeof(libhdr), phFile) == sizeof(libhdr) 564 564 && libhdr.rec_type == LIBHDR 565 565 && libhdr.flags <= 1 /* ASSUME only first bit is used... */ 566 && !fseek(phFile, 0, SEEK_SET) 566 567 ) 567 568 { … … 581 582 582 583 584 /* Wrapper around find_objlib which fixes the slashes - this looks better imho. */ 585 586 static FILE * find_objlib(char *pszfullname, const char *pszname, const char * const *papszexts, int flibhacks) 587 { 588 FILE * phFile = find_objlib2(pszfullname, pszname, papszexts, flibhacks); 589 while ((pszfullname = strchr(pszfullname, '/')) != NULL) 590 *pszfullname++ = '\\'; 591 return phFile; 592 } 593 594 595 583 596 /* Weak prelinking for Method 2 Weak support. */ 584 597 … … 588 601 PWLD pwld; 589 602 590 pwld = wld_create ( 0);603 pwld = wld_create (WLDC_VERBOSE); 591 604 if (pwld) 592 605 { -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.