[gtkada] Darwin static library patch

Arnaud Charlet charlet at ACT-Europe.FR
Wed Jul 28 01:11:50 CEST 2004


> OK, after enough complaining here is a patch.

Thanks. Here are my comments:

+   TARGET_LFLAGS=-bind_at_load

Clearly, this needs to be done in the darwin specific section, not
for every platform. It would be good to know whether this is really
needed or not, and get rid of it if possible.

@@ -43,6 +43,10 @@
       BUILD_SHARED=no
       FPIC=
       ;;
+   *darwin*)
+      BUILD_SHARED=no
+      FPIC=
+      ;;
    esac

Fine.

@@ -161,6 +165,13 @@
     GTK_PREFIX=`$PKG_CONFIG $GTK --variable=prefix`
     GTK_CFLAGS=`$PKG_CONFIG $GTK --cflags`
     GTK_LIBS=`$PKG_CONFIG $GTK --libs`
+dnl The XWarpPointer function introduced in misc.c requires a direct libX11
+dnl reference on darwin.
+    case  $build_os in
+    *darwin*)
+       GTK_LIBS="$GTK_LIBS -L/usr/X11R6/lib -lX11"
+       ;;

Hmm I guess that's OK for now. I'll see whether I can figure out a cleaner
way to do that.

Arno



More information about the gtkada mailing list