summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
authorcheatfate <ka@hardcore.kiev.ua>2016-09-21 03:55:07 +0300
committercheatfate <ka@hardcore.kiev.ua>2016-09-21 03:55:07 +0300
commit4e183dc1065107ac377dd18d2847a4394a90985c (patch)
tree132fbbcc5c0c05aa2060e1c2ef8c45cbbf456784 /config
parentf3da2fe33031743e8448d51e10ec3ff9a1f43a70 (diff)
downloadNim-4e183dc1065107ac377dd18d2847a4394a90985c.tar.gz
RPATH locations for OpenBSD,NetBSD and FreeBSD.
Diffstat (limited to 'config')
-rw-r--r--config/nim.cfg11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/nim.cfg b/config/nim.cfg
index 0cc014a93..0373de135 100644
--- a/config/nim.cfg
+++ b/config/nim.cfg
@@ -122,6 +122,17 @@ clang.objc.options.linker = "-lobjc -lgnustep-base"
   clang.objc.options.linker = "-framework Foundation"
 @end
 
+# Options for FreeBSD, OpenBSD, NetBSD linker to add locations for searching
+# shared libraries.
+@if freebsd or openbsd or netbsd:
+  gcc.options.linker = "-Wl,-rpath=.:/usr/local/lib:/usr/pkg/lib:/usr/X11R6/lib"
+  gcc.cpp.options.linker = "-Wl,-rpath=.:/usr/local/lib:/usr/pkg/lib:/usr/X11R6/lib"
+  llvm_gcc.options.linker = "-Wl,-rpath=.:/usr/local/lib:/usr/pkg/lib:/usr/X11R6/lib"
+  llvm_gcc.cpp.options.linker = "-Wl,-rpath=.:/usr/local/lib:/usr/pkg/lib:/usr/X11R6/lib"
+  clang.options.linker = "-Wl,-rpath=.:/usr/local/lib:/usr/pkg/lib:/usr/X11R6/lib"
+  clang.cpp.options.linker = "-Wl,-rpath=.:/usr/local/lib:/usr/pkg/lib:/usr/X11R6/lib"
+@end
+
 # Configuration for the VxWorks
 # This has been tested with VxWorks 6.9 only
 @if vxworks: