[lokisetup] OSX ?

Timothee Besset ttimo at idsoftware.com
Fri Oct 17 03:28:13 EDT 2003


My situation is a bit different, as this is for the GtkRadiant installer,
which requires fink to run anyway. But yes, the root of the problem is
that fink doesn't provide static libraries for libiconv and libintl.

I'd suggest two things:

- configure should check for the availability of the static version of the
libs, and/or have a flag --enable-static or so.

- provide modified .info, or an alternate .info package to have the static
version?

TTimo

On Thu, 16 Oct 2003 14:46:15 -0700
Stephane Peter <megastep at megastep.org> wrote:

> Actually, to generate binaries that work on systems without fink instead
> (which I think is better), I had to manually patch the fink compilation
> files for these libraries so that static libraries would be built and
> available (they are not included by default). This way there is no
> dependency on gettext and such...
> 
> Your patch fixes the compilation if you don't have the static libs, but
> then you'll have trouble running the resulting binaries on any "basic"
> installation of OSX.
> 
> On Thu, 2003-10-16 at 14:40, Timothee Besset wrote:
> > Hey
> > 
> > I had to apply the patch below to get loki_setup compiling on OSX. Turns
> > off static linking basically. This is on 10.2 and fink unstable.
> > 
> > TTimo
> > 
> > Index: configure.in
> > ===================================================================
> > RCS file: /cvs/cvsroot/loki_setup/configure.in,v
> > retrieving revision 1.41
> > diff -u -r1.41 configure.in
> > --- configure.in        2003/08/13 21:48:29     1.41
> > +++ configure.in        2003/10/16 21:30:16
> > @@ -161,7 +161,7 @@
> >         LIBDL=""
> >         ARCH=`uname -p` ;;
> >      powerpc-apple-darwin*)
> > -       STATIC="-static"
> > +       STATIC=""
> >         RDYNAMIC="-Wl,-Sn"
> >         BSTATIC=""
> >         BDYNAMIC=""
> > @@ -242,16 +242,6 @@
> >          CARBONLIBS="$CARBON_LIBS $LIBINTL"
> >      fi
> >  )
> > -
> > -case "$target" in
> > -       powerpc-apple-darwin*)
> > -    if test -f /sw/lib/libintl.a; then
> > -        LIBINTL="/sw/lib/libintl.a /sw/lib/libiconv.a"
> > -        LIBS="$LIBS $LIBINTL"
> > -        GUILIBS="$GUI_LIBS $LIBINTL"
> > -        CARBONLIBS="$CARBON_LIBS $LIBINTL"
> > -    fi
> > -esac
> >   
> >  AC_CHECK_LIB(gpm, Gpm_Open, USE_GPM=yes)
> >   
> -- 
> Stephane Peter
> Sr. Software Engineer
> Codehost, Inc.
> 
> 
> 



More information about the Lokisetup mailing list