Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 22 Feb 2017 21:57:05 +0100
From: Mathias Krause <minipli@...glemail.com>
To: Rich Felker <dalias@...ifal.cx>
Cc: musl@...ts.openwall.com,
	Mathias Krause <minipli@...glemail.com>
Subject: [PATCH] musl-gcc.spec: honour $LIBRARY_PATH / $LPATH

To support additional library search paths via $LIBRARY_PATH / $LPATH
extend the link_libgcc variable instead of replacing it. The original
one will contain the required "%D" to support this.

musl's library path is still the first in the list, so its object files
will be found before other paths are taken into account.

Signed-off-by: Mathias Krause <minipli@...glemail.com>
---
 tools/musl-gcc.specs.sh |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/musl-gcc.specs.sh b/tools/musl-gcc.specs.sh
index 294e24f75503..819799a6d5a7 100644
--- a/tools/musl-gcc.specs.sh
+++ b/tools/musl-gcc.specs.sh
@@ -10,8 +10,10 @@ cat <<EOF
 *cc1:
 %(cc1_cpu) -nostdinc -isystem $incdir -isystem include%s
 
+%rename link_libgcc old_link_libgcc
+
 *link_libgcc:
--L$libdir -L .%s
+-L$libdir %(old_link_libgcc)
 
 *libgcc:
 libgcc.a%s %:if-exists(libgcc_eh.a%s)
-- 
1.7.10.4

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.