[lokisetup] OSX ?

Stephane Peter megastep at megastep.org
Thu Oct 16 17:46:15 EDT 2003


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