summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1dcec055d..4b69318e3 100644
--- a/Makefile
+++ b/Makefile
@@ -381,6 +381,9 @@ else
#These are used for all but Darwin
ASTLINK=-Wl,-E
SOLINK=-shared -Xlinker -x
+ ifeq ($(findstring BSD,$(OSARCH)),BSD)
+ SOLINK+=-L$(CROSS_COMPILE_TARGET)/usr/local/lib
+ endif
endif
ifeq ($(OSARCH),FreeBSD)