Hi there,
I am implementing a new video backend (plain KMS, no GLES/EGL involved, for 2D systems) but, even if I have done similar things other times, I am having difficulties this time because new libs have to be added and these I add won’t appear on the final linking line, or at least won’t appear doing what I expect I should be doing (in my other backends no new libs had to be added, only new objects).
I am currently adding this to qb/config.libs.sh:
if [ “$HAVE_PLAINKMS” != “no” ]; then PLAINKMS_LIBS=-ldrm fi
Then, in Makefile.common, I should have PLAINKMS_LIBS available, so I do:
ifeq ($(HAVE_PLAINKMS), 1) OBJ += gfx/drivers/plainkms_gfx.o LIBS += $(PLAINKMS_LIBS) endif
Well, the new object (gfx/drivers/plainkms_gfx.o) IS built fine (I have also added the configure option, etc), but -ldrm WON’T appear on the linker line at the end of the building process. I can do this instead on Makefile.common:
ifeq ($(HAVE_PLAINKMS), 1) OBJ += gfx/drivers/plainkms_gfx.o LIBS += -ldrm endif
…and then -ldrm IS present on the linker line at the end of the building process, but the first way is the good one and I would like to know what am I missing here. Thanks!