On 30 Sep 2007, at 19:12, Gonzalo Garramuño wrote:
>
> No, I'm using the latest svn.  svn diff shows no differences with my
> stuff.  I looked at the source code and I know that it is broken  
> and why
> that is.

What version? Mine shows 5940 when I run svn up. I assumed that is  
latest?

> Greg sets --use-images in the main makefile, but not in the
> Makefile-fltk2, which is obviously a problem if you run it alone  
> without
> the switch, but regardless of that latest svn of fltk2-config is  
> broken.

Although you are never supposed to run the Makefile-fltk2 - it is  
only supposed to be run by the generic Makefile.


> If you look at fltk2-config.in (or fltk2-config latest), you will  
> see this:
>
> if test x$use_images = xyes; then
>      LDLIBS="-lfltk2_images$SHAREDSUFFIX $IMAGELIBS $LDLIBS"
>      LDSTATIC="$libdir/libfltk2_images.a $LDSTATIC $IMAGELIBS"
> fi
>
> That is, unlike other switches, LIBS is not being set for --use- 
> images.
>   However, later this is the stuff printed.
>
> if test "$echo_libs" = "yes"; then
>      echo $LIBS
> fi


Ah yes... I agree that this looks wrong.

But it doesn't actually affect Greg's Makefile, since he asserts -- 
ldstaticflags in his build, so the $LIBS parameter is unused and the  
$LDSTATIC value is used instead - which *is* correctly set by the  
fltk2-config script...
Are you modifying Greg's Makefile to support dynamic linking or  
something? Is that why we are seeing different behaviour?

Anyway, here's what fltk2-config from r5940 yields for me:

With just "libs" asked for... looks wrong...

immpc4:/Volumes/Disk2/CVS_images/svn/fltk ian$ ./fltk2-config --use- 
images --libs
./lib/libfltk2.a

With "ldstaticflags" requested, the output looks OK.

immpc4:/Volumes/Disk2/CVS_images/svn/fltk ian$ ./fltk2-config --use- 
images --ldstaticflags
-L./lib ./lib/libfltk2_images.a ./lib/libfltk2.a -lpthread -framework  
Carbon -framework ApplicationServices -lpng -lfltk2_images -ljpeg -lz

And since Greg *is* using the ldstaticflags option, all seems well...
Does look like the fltk2-config script might have a few "loose ends"  
in it though... Is the fltk1 script OK?

-- 
Ian

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to