Codebase list swi-prolog / upstream/6.4.1 packages / swipl-ld.sh.in
upstream/6.4.1

Tree @upstream/6.4.1 (Download .tar.gz)

swipl-ld.sh.in @upstream/6.4.1raw · history · blame

#!/bin/sh

# Run plld from the development system (i.e.   after  the base system is
# compiled, but not yet  installed.  If   we  are  building using shared
# libraries we must set LD_LIBRARY_PATH to be able to find them.
#
# On some machines LD_LIBRARY_PATH is called different.  The configure
# variable DLLIBVAR holds its name.

bdir=@abs_top_builddir@
PLARCH=@PLARCH@
EXEEXT_FOR_BUILD=@EXEEXT_FOR_BUILD@
ldir=$bdir/../lib/$PLARCH

if [ "x$@DLLIBVAR@" = "x" ]; then
  @DLLIBVAR@=$ldir
else
  @DLLIBVAR@="$ldir:$@DLLIBVAR@"
fi
export @DLLIBVAR@

case "$PLARCH" in
    *-win32|*-win64)
        LDFLAGS=-luxnt
	;;
esac

$bdir/swipl-ld-build$EXEEXT_FOR_BUILD -build-defaults "$@" $LDFLAGS