On Tue, Sep 10, 2013 at 2:09 PM, Thomas Preud'homme <[email protected]> wrote: > Le lundi 9 septembre 2013 16:32:48 Vittorio Giovara a écrit : >> On Mon, Sep 9, 2013 at 3:47 PM, Thomas Preud'homme <[email protected]> > wrote: >> > >> > Indeed. Tcc add directories to search for libraries at the end of the >> > existing list. Since there is only one global list, they are searched >> > after the default directories. What should be done is to separate search >> > path between default and non default like is done for includes. Search >> > path need to be added in order (think -Ldir1 -Ldir2) but user provided >> > path should be searched first. >> > > >> >> Is something like this acceptable? > > It won't work in all cases. When a program is using libtcc, it won't necessary > call tcc_parse_args or tcc_set_options. But indeed, this approch modify much > less lines than the one I was envisioning. >
Here is another stab at this, with even less changes :) Vittorio
0001-set-the-user-defined-library-search-paths-first.patch
Description: Binary data
_______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
