diff options
author | jlam <jlam@pkgsrc.org> | 2017-06-01 13:30:52 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2017-06-01 13:30:52 +0000 |
commit | b3da9204db34a33e72fd9b8b0b078034a5f40278 (patch) | |
tree | f13a9f7c07fd74edfd018c7949fea3071b382328 /mk | |
parent | 9d7b4cef4b2fcd434bb915ef69841314b9f9900d (diff) | |
download | pkgsrc-b3da9204db34a33e72fd9b8b0b078034a5f40278.tar.gz |
Remove unused scripts/shlib-type script.
The platform/${OPSYS}.mk files now use platform-specific code to
set ${_OPSYS_SHLIB_TYPE} which is the default value for
${SHLIB_TYPE}. All previous uses of this script to detect the
native shared library type or native executable format have been
removed from pkgsrc.
Diffstat (limited to 'mk')
-rwxr-xr-x | mk/scripts/shlib-type | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/mk/scripts/shlib-type b/mk/scripts/shlib-type deleted file mode 100755 index 4bcc2f8bf84..00000000000 --- a/mk/scripts/shlib-type +++ /dev/null @@ -1,46 +0,0 @@ -# /bin/sh -# -# $NetBSD: shlib-type,v 1.3 2007/08/02 16:00:33 jlam Exp $ -# -# This code is derived from software contributed to The NetBSD Foundation -# by Alistair Crooks. -# -# This script returns the the library format for the platform. If -# the library format is "ELF/a.out", then we inspect the specified -# path to determine the correct object format (either ELF or a.out). -# - -if [ -z "${FILE_CMD}" ]; then - FILE_CMD=file -fi - -if [ $# -lt 2 ]; then - echo 1>&2 "usage: shlib-type libformat binpath" - exit 1 -fi - -libformat="$1" -binpath="$2" - -sotype=none -case "$1" in -ELF/a.out) - if [ -f "$binpath" ]; then - output=`${FILE_CMD} $binpath 2>/dev/null` - else - output= - fi - case "$output" in - *ELF*dynamically*) sotype="ELF" ;; - *shared*library*) sotype="a.out" ;; - *dynamically*) sotype="a.out" ;; - *) sotype="ELF" ;; # guess "ELF" - esac - ;; -*) - sotype="$1" - ;; -esac -echo $sotype - -exit 0 |