diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-09-21 10:39:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-21 10:39:35 +0200 |
commit | 723bc158cea494d3479573819f3e86ce0667409e (patch) | |
tree | 132fbbcc5c0c05aa2060e1c2ef8c45cbbf456784 | |
parent | f3da2fe33031743e8448d51e10ec3ff9a1f43a70 (diff) | |
parent | 4e183dc1065107ac377dd18d2847a4394a90985c (diff) | |
download | Nim-723bc158cea494d3479573819f3e86ce0667409e.tar.gz |
Merge pull request #4809 from cheatfate/rpath
RPATH locations for OpenBSD,NetBSD and FreeBSD.
-rw-r--r-- | config/nim.cfg | 11 |
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: |