- remove ld.so.conf parsing from makefiles: this was probably done because we

used to completely replace the default linker script under Linux (which
    also includes search directories), and it's wrong in case of
    cross-compiling

git-svn-id: trunk@44860 -
This commit is contained in:
Jonas Maebe 2020-04-19 17:33:18 +00:00
parent 0df2c867ca
commit f81dac4f6f
2 changed files with 373 additions and 389 deletions

File diff suppressed because it is too large Load Diff

View File

@ -850,18 +850,13 @@ ifneq ($(CROSSGCC),)
GCCLIBDIR:=$(shell dirname `$(CROSSGCC) -print-libgcc-file-name`)
endif
endif
# Other libraries from ld.so.conf
ifndef OTHERLIBDIR
OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" "; print $1 }')
endif
endif
ifdef inUnix
ifeq ($(OS_SOURCE),netbsd)
OTHERLIBDIR+=/usr/pkg/lib
OTHERLIBDIR:=/usr/pkg/lib
endif
export GCCLIBDIR OTHERLIB
export GCCLIBDIR OTHERLIBDIR
endif