[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT/SQLITE V3 PATCH 4/5] Add patches directory
On 12/4/19 8:12 PM, Costin Lupu wrote: > Hi Gaulthier, > > Instead of patching the original code, we used another trick so far. We > used the C preprocessor in order to replace `main` with the new name > (please have a look here [1]). > > So, in your case you would need to add in Makefile.uk: > > LIBSQLITE_SHELL_FLAGS-y += -Dmain=sqlite_main > > I would not rename the `wmain()` function though, I would call it from > your main() example (please see the comments for patch 3). Actually, on a second thought, we should also replace wmain(), in deed. So you can use: LIBSQLITE_SHELL_FLAGS-y += -Dmain=sqlite_main -Dwmain=sqlite_main > > [1] https://github.com/unikraft/lib-redis/blob/staging/Makefile.uk#L210 Cheers, Costin _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |