lua-users home
lua-l archive

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


Hey,

Currently, when compiling lua-5.2.0 work2 with mingw, only the DLL is built. It would be better to have the import and static library if one wants to use the DLL in a lib or program.

When I build a library with mingw, I usually do that in Makefile (:

STATIC_LIB=liblua.a
SHARED_LIB=lua52.dll
$(STATICLIB): $(MY_O)
$(AR) $(ARFLAGS) $@ $(MY_O)

$(SHARED_LIB):$(MY_O)
$(CC) -shared -o $@ \
-Wl,-s \
-Wl,--out-implib=liblua.dll.a \
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
$(MY_O)
Would it be possible to do that (well, something similar, at least) for lua 5.2 with mingw ?

thank you

Vincent Torri