Additional path for libs

Bekenn leaveme at alone.com
Sat Feb 26 19:05:25 PST 2011


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


More information about the Digitalmars-d-learn mailing list