From 86f55b3d2a934eb190815c5f83a3d683acf7337d Mon Sep 17 00:00:00 2001 From: naddy Date: Fri, 14 Sep 2018 13:44:18 +0000 Subject: [PATCH] Pass -L/usr/lib to the linker in preparation for switching to lld, which does not have a default search path. ok kettenis@ jsg@ --- gnu/gcc/gcc/config/i386/openbsd64.h | 3 ++- 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 -- 2.20.1