Make sure that -L option comes before image libraries, not after.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3759 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet
2004-08-05 20:20:51 +00:00
parent db983c71b1
commit 1215b40f82
+7 -7
View File
@@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# #
# "$Id: fltk-config.in,v 1.12.2.24 2004/07/29 18:13:10 easysw Exp $" # "$Id: fltk-config.in,v 1.12.2.25 2004/08/05 20:20:51 easysw Exp $"
# #
# FLTK configuration utility. # FLTK configuration utility.
# #
@@ -175,9 +175,9 @@ else
fi fi
# Calculate needed libraries # Calculate needed libraries
LDSTATIC="$libs $libdir/libfltk.a $LDLIBS" LDSTATIC="$libdir/libfltk.a $LDLIBS"
LDLIBS="$libs -lfltk$SHAREDSUFFIX $LDLIBS" LDLIBS="-lfltk$SHAREDSUFFIX $LDLIBS"
LIBS="$LIBS $libs $libdir/libfltk.a" LIBS="$libdir/libfltk.a"
if test x$use_forms = xyes; then if test x$use_forms = xyes; then
LDLIBS="-lfltk_forms$SHAREDSUFFIX $LDLIBS" LDLIBS="-lfltk_forms$SHAREDSUFFIX $LDLIBS"
@@ -194,8 +194,8 @@ if test x$use_images = xyes; then
LDSTATIC="$libdir/libfltk_images.a $IMAGELIBS $LDSTATIC" LDSTATIC="$libdir/libfltk_images.a $IMAGELIBS $LDSTATIC"
fi fi
LDLIBS="$DSOLINK $LDFLAGS $LDLIBS" LDLIBS="$DSOLINK $LDFLAGS $libs $LDLIBS"
LDSTATIC="$LDFLAGS $LDSTATIC" LDSTATIC="$LDFLAGS $libs $LDSTATIC"
# Answer to user requests # Answer to user requests
if test -n "$echo_help"; then if test -n "$echo_help"; then
@@ -266,5 +266,5 @@ if test "$echo_libs" = "yes"; then
fi fi
# #
# End of "$Id: fltk-config.in,v 1.12.2.24 2004/07/29 18:13:10 easysw Exp $". # End of "$Id: fltk-config.in,v 1.12.2.25 2004/08/05 20:20:51 easysw Exp $".
# #