Ticket #57669: LDFLAGS.patch

File LDFLAGS.patch, 1.3 KB (added by ryandesign (Ryan Carsten Schmidt), 6 years ago)
  • configurator/taucs_config.c

    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  
    432432      fprintf(f, "\t  $(CILKOUTFLG)%s\n", get_full_name(i,object));
    433433    }
    434434         
    435     fprintf(f,"\t- $(LD) $(LDFLAGS) \\\n");
     435    fprintf(f,"\t- $(LD) \\\n");
    436436    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));
    438438   
    439439    fprintf(f,"\t- %s",get_full_name(i,executable));
    440440    fprintf(f, " %s%c%s%s%c%s\n",
     
    587587      }
    588588      fprintf(f,"\n");
    589589
    590       fprintf(f,"\t$(LD) $(LDFLAGS) \\\n");
     590      fprintf(f,"\t$(LD) \\\n");
    591591      fprintf(f,"\t$(LOUTFLG)%s \\\n",get_full_name(i,0));
    592592      for (k=0; files[k].name; k++) {
    593593        if (files[k].state != i) continue;
     
    599599        if ( ! (files[k].state) )       continue; /* except if the lib is not built at all */
    600600        fprintf(f, "\t%s \\\n",get_lib_spec(k));
    601601      }
    602       fprintf(f,"\t$(LIBS)\n");
     602      fprintf(f,"\t$(LDFLAGS) $(LIBS)\n");
    603603    }
    604604  }
    605605