scripts/functions: Use stat correctly on non-GNU (BSD/Darwin) systems.
Call to get the directory mode depending on $CT_SYS_OS
yann.morin.1998@anciens.enib.fr:
CT_SYS_OS has changed on Linuxsystem, it only gets the kernel name "Linux",
and not the system name, 'GNU/'.
1 Description: correct where ld scripts are installed
2 Author: Chris Chimelis <chris@debian.org>
4 --- binutils-2.16.91.0.1/ld/Makefile.am
5 +++ binutils-2.16.91.0.1/ld/Makefile.am
7 # We put the scripts in the directory $(scriptdir)/ldscripts.
8 # We can't put the scripts in $(datadir) because the SEARCH_DIR
9 # directives need to be different for native and cross linkers.
10 -scriptdir = $(tooldir)/lib
11 +scriptdir = $(libdir)
14 EMULATION_OFILES = @EMULATION_OFILES@
15 --- binutils-2.16.91.0.1/ld/Makefile.in
16 +++ binutils-2.16.91.0.1/ld/Makefile.in
18 # We put the scripts in the directory $(scriptdir)/ldscripts.
19 # We can't put the scripts in $(datadir) because the SEARCH_DIR
20 # directives need to be different for native and cross linkers.
21 -scriptdir = $(tooldir)/lib
22 +scriptdir = $(libdir)
23 BASEDIR = $(srcdir)/..
24 BFDDIR = $(BASEDIR)/bfd
25 INCDIR = $(BASEDIR)/include