diff options
author | 2018-09-14 13:44:18 +0000 | |
---|---|---|
committer | 2018-09-14 13:44:18 +0000 | |
commit | 86f55b3d2a934eb190815c5f83a3d683acf7337d (patch) | |
tree | d7d6d8d37468e9ef5fe401f24f30659f791e87c9 | |
parent | Pass CC/CFLAGS/LDFLAGS to the configure script. ok millert@ (diff) | |
download | wireguard-openbsd-86f55b3d2a934eb190815c5f83a3d683acf7337d.tar.xz wireguard-openbsd-86f55b3d2a934eb190815c5f83a3d683acf7337d.zip |
Pass -L/usr/lib to the linker in preparation for switching to lld, which
does not have a default search path. ok kettenis@ jsg@
-rw-r--r-- | gnu/gcc/gcc/config/i386/openbsd64.h | 3 | ||||
-rw-r--r-- | gnu/gcc/gcc/config/i386/openbsdelf.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/gnu/gcc/gcc/config/i386/openbsd64.h b/gnu/gcc/gcc/config/i386/openbsd64.h index 24444e505e0..ddef4c13ebf 100644 --- a/gnu/gcc/gcc/config/i386/openbsd64.h +++ b/gnu/gcc/gcc/config/i386/openbsd64.h @@ -121,7 +121,8 @@ Boston, MA 02111-1307, USA. */ %{!static:-Bdynamic} \ %{rdynamic:-export-dynamic} \ %{assert*} \ - %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so}" + %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so} \ + %{!nostdlib:-L/usr/lib}" #define OBSD_HAS_CORRECT_SPECS diff --git a/gnu/gcc/gcc/config/i386/openbsdelf.h b/gnu/gcc/gcc/config/i386/openbsdelf.h index 5832f64cc76..0a475954be6 100644 --- a/gnu/gcc/gcc/config/i386/openbsdelf.h +++ b/gnu/gcc/gcc/config/i386/openbsdelf.h @@ -126,6 +126,7 @@ Boston, MA 02110-1301, USA. */ %{!static:-Bdynamic} \ %{rdynamic:-export-dynamic} \ %{assert*} \ - %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so}" + %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so} \ + %{!nostdlib:-L/usr/lib}" #define OBSD_HAS_CORRECT_SPECS |