Import updated script upstream
This commit is contained in:
parent
c8e36e34a2
commit
72a0cd1fde
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#$Id$
|
||||
#Copyright (c) 2015-2017 Pierre Pronchery <khorben@defora.org>
|
||||
#Copyright (c) 2015-2018 Pierre Pronchery <khorben@defora.org>
|
||||
#
|
||||
#Redistribution and use in source and binary forms, with or without
|
||||
#modification, are permitted provided that the following conditions are met:
|
||||
|
@ -26,6 +26,7 @@
|
|||
|
||||
#variables
|
||||
CONFIGSH="${0%/platform.sh}/config.sh"
|
||||
DESTDIR=
|
||||
PREFIX="/usr/local"
|
||||
PROGNAME="platform.sh"
|
||||
SOEXT=".so"
|
||||
|
@ -39,9 +40,9 @@ _platform_library()
|
|||
library="$1"
|
||||
libdir=$(_platform_variable "LIBDIR")
|
||||
|
||||
if [ -f "/lib/lib$library$SOEXT" \
|
||||
-o -f "/usr/lib/lib$library$SOEXT" \
|
||||
-o -f "$libdir/lib$library$SOEXT" ]; then
|
||||
if [ -f "$DESTDIR/lib/lib$library$SOEXT" \
|
||||
-o -f "$DESTDIR/usr/lib/lib$library$SOEXT" \
|
||||
-o -f "$DESTDIR$libdir/lib$library$SOEXT" ]; then
|
||||
echo "-l$library"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user