Pass -L/usr/lib to the linker in preparation for switching to lld, which
authornaddy <naddy@openbsd.org>
Fri, 14 Sep 2018 13:44:18 +0000 (13:44 +0000)
committernaddy <naddy@openbsd.org>
Fri, 14 Sep 2018 13:44:18 +0000 (13:44 +0000)
does not have a default search path.  ok kettenis@ jsg@

gnu/gcc/gcc/config/i386/openbsd64.h
gnu/gcc/gcc/config/i386/openbsdelf.h

index 24444e5..ddef4c1 100644 (file)
@@ -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
 
index 5832f64..0a47595 100644 (file)
@@ -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