lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 1/22/2012 2:08 AM, Luiz Henrique de Figueiredo wrote:
When building after changing a single file, make fails because gcc -shared
is being used as AR and the $? is incorrect when used that way. Only mingw
seems to be built this way.

Is that a problem in the definition of AR in the mingw target or in
the rules to build the Lua library ?
[snip]

The former (the definition of AR in the mingw target).

When generating the DLL, we need all the relevant object files in one go. $? only gives newer files, which is why the first attempt borks. A second attempt succeeds because the first attempt caused the DLL to be deleted.

All other platforms seem to be using ar, which is fine because it can incrementally update the library. But building a DLL is more like building an executable. All we need is all the relevant object files for DLL building.

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia