1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

Fix build on i386 for lld.

This also works with ld.bfd.

PR:		214864
Reported by:	emaste@
This commit is contained in:
Cy Schubert 2018-09-27 02:41:47 +00:00
parent 4e292693bf
commit dd60b07aef
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=480770

View File

@ -1,11 +1,13 @@
--- config.svr4.orig Wed May 17 11:15:53 2006
+++ config.svr4 Wed May 17 11:19:04 2006
@@ -1,7 +1,7 @@
@@ -1,8 +1,8 @@
# @(#) config.svr4 1.7 92/10/27
-CONFIGPIC = -Kpic
+CONFIGPIC = -fPIC
CONFIGSHAREDLIBLD = ld -G -o $@ -h libsspkg.so.1 $? -lm -lc;
-CONFIGSHAREDLIBLD = ld -G -o $@ -h libsspkg.so.1 $? -lm -lc;
+CONFIGSHAREDLIBLD = ld -G $? -o $@ -h libsspkg.so.1 -L/usr/lib -lm -lc --shared;
SHAREDLIB = $(LIBDIR)/libsspkg.so.1
CONFIGTARGETS = $(SHAREDLIB)