FYI: Simple to run newest STk with FreeBSD-3.1

From: F. Heinrichmeyer <fritz.heinrichmeyer_at_FernUni-Hagen.de>
Date: Mon, 15 Mar 1999 14:52:17 +0100

As i maintain a freebsd server i also installed the system on my desktop
and of course i needed STk-3.99.4 for my spice-interface. Porting was
very simple (for compiling with egcs).

I applied a small patch after using the very very cool automatically
freebsd porting system for STk-3.1.1 ...

A patch is attached ...

-- 
Fritz Heinrichmeyer mailto:fritz.heinrichmeyer_at_fernuni-hagen.de
FernUniversitaet Hagen, LG Elektronische Schaltungen, 58084 Hagen
(Germany)
tel:+49 2331/987-1166 fax:987-355 http://ES-i2.fernuni-hagen.de/~jfh
PGP fingerprint (mail for key): 160BDF84 3F2F63C0  5CA20D31 3E42D116


diff -c -r ../orig/STk-3.99.4/Src/dynload.c STk-3.99.4/Src/dynload.c
*** ../orig/STk-3.99.4/Src/dynload.c Mon Feb 1 15:18:22 1999
--- STk-3.99.4/Src/dynload.c Thu Mar 11 15:45:19 1999
***************
*** 271,277 ****
    for (p = path, slash = p-1; *p; p++) /* Find position of last '/' */
      if (*p == '/') slash = p;
  
! #if defined(NETBSD1) || defined(FREEBSD)
    sprintf(fct_name, "_STk_init_%s", slash + 1);
  #else
    sprintf(fct_name, "STk_init_%s", slash + 1);
--- 271,277 ----
    for (p = path, slash = p-1; *p; p++) /* Find position of last '/' */
      if (*p == '/') slash = p;
  
! #if defined(NETBSD1)
    sprintf(fct_name, "_STk_init_%s", slash + 1);
  #else
    sprintf(fct_name, "STk_init_%s", slash + 1);
diff -c -r ../orig/STk-3.99.4/configure.in STk-3.99.4/configure.in
*** ../orig/STk-3.99.4/configure.in Mon Feb 1 15:18:22 1999
--- STk-3.99.4/configure.in Thu Mar 11 15:26:03 1999
***************
*** 17,22 ****
--- 17,26 ----
  machine=`uname -m`
  
  case $os in
+ FreeBSD*)
+ case $machine in
+ i*86) machine=ix86;;
+ esac;;
    Linux*)
            case $version in
              1.*) version=1.X;;
***************
*** 450,459 ****
       STKLDFLAGS="$STKLDFLAGS -Wl,-E"
       LIB_DLD=-ldld;;
     FREEBSD)
! SH_CCFLAGS="-pic"
! SH_LDFLAGS="-Bshareable -o"
       SH_LOADER="ld"
! LIB_MALLOC="-lgnumalloc"
       SH_SUFFIX='so';;
     IRIX5)
       if test "$CC" = "gcc"
--- 454,464 ----
       STKLDFLAGS="$STKLDFLAGS -Wl,-E"
       LIB_DLD=-ldld;;
     FREEBSD)
! SH_CCFLAGS="-fpic"
! SH_LDFLAGS="-shared -o"
       SH_LOADER="ld"
! LIB_MALLOC=""
! STKLDFLAGS=-rdynamic
       SH_SUFFIX='so';;
     IRIX5)
       if test "$CC" = "gcc"
Received on Mon Mar 15 1999 - 14:52:56 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST