From: naddy Date: Fri, 14 Sep 2018 13:44:18 +0000 (+0000) Subject: Pass -L/usr/lib to the linker in preparation for switching to lld, which X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=86f55b3d2a934eb190815c5f83a3d683acf7337d;p=openbsd Pass -L/usr/lib to the linker in preparation for switching to lld, which does not have a default search path. ok kettenis@ jsg@ --- 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