File: module-build

package info (click to toggle)
gp2c 0.0.14pl1-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 3,180 kB
  • sloc: ansic: 8,608; sh: 1,630; lex: 347; yacc: 227; makefile: 107
file content (24 lines) | stat: -rwxr-xr-x 677 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/sh
. "$1"

if test "x$modules_build" = "x"; then

# /usr/bin/sed on solaris does not understand \+
  case "$DLLDFLAGS" in
    *LIBPARI_SONAME*)
	mydlldflags=`echo "$DLLDFLAGS" | sed -e 's/-[^ \t][^ \t]*[= \t][ \t]*\$(LIBPARI_SONAME)//'`;;
    *)
	mydlldflags=`echo "$DLLDFLAGS" | sed -e 's/-[^ \t][^ \t]*[ \t][ \t]*\$@//'`;;
  esac

  if test "$static" = "n"; then
    LIBS="$LIBS $LDDYN"
  fi
  myextradlldflags=`eval echo $EXTRADLLDFLAGS`

  myincludedir=`echo "$includedir" | sed -e 's/\/pari\/*$//'`
  echo "$CC -c -o %s.o $cflags -I$myincludedir %s.c && $DLLD -o %s.$DLSUFFIX $mydlldflags %s.o $myextradlldflags"

else
  echo "$modules_build" | sed 's/"/\\"/g'
fi