MAKEFILE: Make sure that the runtime library search path is also used at link time.

This commit is contained in:
Mark Pizzolato 2016-02-08 13:27:09 -08:00
parent ba9769c258
commit 02aa4539cd

View file

@ -266,12 +266,12 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
$(info *** Warning ***)
else
LIBPATH = $(subst :, ,$(LPATH))
endif
endif
OS_LDFLAGS += $(patsubst %,-L%,$(LIBPATH))
endif
endif
endif
endif
endif
ifeq (usrpkglib,$(shell if $(TEST) -d /usr/pkg/lib; then echo usrpkglib; fi))
LIBPATH += /usr/pkg/lib
INCPATH += /usr/pkg/include