https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
4 lines
178 B
Makefile
4 lines
178 B
Makefile
$(LUA_SO): $(CORE_O) $(LIB_O)
|
|
$(CC) -shared $(LIBS) -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? $(MYLDFLAGS)
|
|
ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V)
|
|
ln -sf $(LUA_SO).$(R) $(LUA_SO)
|