Put LDFLAGS near the end because we don't want the MacPorts -L flag to
supersede the project's own -L flags. We want to use the just-built copy
of libtaucs, not an older one that was already installed.
old
|
new
|
|
432 | 432 | fprintf(f, "\t $(CILKOUTFLG)%s\n", get_full_name(i,object)); |
433 | 433 | } |
434 | 434 | |
435 | | fprintf(f,"\t- $(LD) $(LDFLAGS) \\\n"); |
| 435 | fprintf(f,"\t- $(LD) \\\n"); |
436 | 436 | fprintf(f,"\t $(LOUTFLG)%s \\\n",get_full_name(i,executable)); |
437 | | fprintf(f,"\t %s $(LIBS)\n",get_full_name(i,object)); |
| 437 | fprintf(f,"\t %s $(LDFLAGS) $(LIBS)\n",get_full_name(i,object)); |
438 | 438 | |
439 | 439 | fprintf(f,"\t- %s",get_full_name(i,executable)); |
440 | 440 | fprintf(f, " %s%c%s%s%c%s\n", |
… |
… |
|
587 | 587 | } |
588 | 588 | fprintf(f,"\n"); |
589 | 589 | |
590 | | fprintf(f,"\t$(LD) $(LDFLAGS) \\\n"); |
| 590 | fprintf(f,"\t$(LD) \\\n"); |
591 | 591 | fprintf(f,"\t$(LOUTFLG)%s \\\n",get_full_name(i,0)); |
592 | 592 | for (k=0; files[k].name; k++) { |
593 | 593 | if (files[k].state != i) continue; |
… |
… |
|
599 | 599 | if ( ! (files[k].state) ) continue; /* except if the lib is not built at all */ |
600 | 600 | fprintf(f, "\t%s \\\n",get_lib_spec(k)); |
601 | 601 | } |
602 | | fprintf(f,"\t$(LIBS)\n"); |
| 602 | fprintf(f,"\t$(LDFLAGS) $(LIBS)\n"); |
603 | 603 | } |
604 | 604 | } |
605 | 605 | |