Apologies for the late reply, but this could help:
As you've already seen in the other replies, the provided sc.ini file is
confounding your attempts at setting the LIB environment variable.
However, OPTLINK's search path for sc.ini includes the current
directory, so if you're reluctant to alter the original file, you can
just create an empty sc.ini in the current directory. You are then free
to redefine LIB and DFLAGS to whatever you like.
Here's an excerpt from one of my makefiles (I use Microsoft's NMAKE):
$(EXECUTABLE) : sc.ini $(SOURCES)
$(D) $(SOURCES) $(LIBS) $(DFLAGS) $(DEXEFLAGS)
@move /y "$(APPNAME).map" $(@D) > NUL
sc.ini :
@copy NUL sc.ini