[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    mico 2.2.6 and FreeBSD
From:       Alex Zepeda <garbanzo () hooked ! net>
Date:       1999-05-22 3:22:25
[Download RAW message or body]

Since I really haven't touched the port for mico and I probably won't,
here's my copy of mico-shld.def.in that tweaks configure enough to get
shared libs to build, but more tweaking is required as you build to get
the binaries to link to the shared libs...

- alex

["mico-shld.def.in" (TEXT/PLAIN)]

#! /bin/sh -f

args=''
outfile=''
ofiles=''
libdirs=''
nolibs='n'

die () {
  echo "$1" >&2
  exit 1
}

for arg in ` echo "$LIBRARY_PATH" | tr : ' ' `
do
  libdirs="$libdirs '-L$arg'"
done

while [ $# -gt 0 ]
do
  case "$1" in
  -o)
    shift
    test $# -gt 0 || die "missing arg for -o"
    outfile="$1"
    ;;
  *.o | *.o0)
    ofiles="$ofiles '$1'"
    args="$args '$1'"
    ;;
  -L*)
    libdirs="$libdirs '$1'"
    ;;
  -nolibs)
    nolibs='y'
    ;;
  -l*)
    test "$nolibs" = n && args="$args '$1'"
    ;;
  *)
    args="$args '$1'"
    ;;
  esac
  shift
done

test "X$ofiles"  != X || die "no input files"
test "X$outfile" != X || die "no output file"

symfile=` echo "$outfile" | sed -e 's/\.o$//' `'.so'

outfile=` echo "$outfile" | sed -e 's/\.o$//' `'.@SOEXT@'

symcmd="ln -sf $outfile $symfile"

ldcmd="@SHARED_CC@ @PICFLAGS@ @LDSOFLAGS@ @DLFLAGS@ @LDFLAGS@ -o $outfile \
 $args" # @LIBS@


echo "$ldcmd"
eval "$ldcmd" || exit

echo "$symcmd"
eval "$symcmd" || exit

# for HP-UX
chmod 555 "$outfile"


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic