agg-2.5-libtool.patch 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Submitted By: Hugo Villeneuve <hugo at hugovil dot com>
  2. Date: 2011-08-25
  3. Initial Package Version: 2.5
  4. Upstream Status: Not sent
  5. Origin: Hugo Villeneuve
  6. Description: Fix the following compilation error:
  7. /bin/sh ../../../libtool --tag=CXX --mode=link g++ -I../../../include -I
  8. -pipe -O2 -march=native -fomit-frame-pointer -version-info 2:4:0 -L -o
  9. libaggplatformX11.la -rpath /usr/local/lib
  10. libaggplatformX11_la-agg_platform_support.lo -lX11
  11. libtool: link: require no space between `-L' and `-o'
  12. This is caused by an empty variable x_libraries. Added a conditional automake
  13. variable to prevent that.
  14. diff -Naur agg-2.5.orig/configure.in agg-2.5.new/configure.in
  15. --- agg-2.5.orig/configure.in 2006-10-09 00:06:36.000000000 -0400
  16. +++ agg-2.5.new/configure.in 2011-08-25 22:49:03.595769037 -0400
  17. @@ -123,6 +123,10 @@
  18. AM_CONDITIONAL(ENABLE_X11,[test x$no_x = x -a xno != x$enable_platform -a x$win32_host != xyes])
  19. AC_SUBST(x_includes)
  20. AC_SUBST(x_libraries)
  21. +
  22. +dnl To avoid empty "-L", because libtool doesn't like that.
  23. +AM_CONDITIONAL(EMPTY_X_LIBRAIRIES,[test x$x_libraries = x])
  24. +
  25. dnl ###############################################
  26. dnl Settung up library version
  27. diff -Naur agg-2.5.orig/src/platform/X11/Makefile.am agg-2.5.new/src/platform/X11/Makefile.am
  28. --- agg-2.5.orig/src/platform/X11/Makefile.am 2006-12-10 19:59:45.000000000 -0500
  29. +++ agg-2.5.new/src/platform/X11/Makefile.am 2011-08-25 22:49:15.801769061 -0400
  30. @@ -1,7 +1,13 @@
  31. if ENABLE_X11
  32. lib_LTLIBRARIES = libaggplatformX11.la
  33. +if EMPTY_X_LIBRAIRIES
  34. +# To avoid empty "-L", because libtool doesn't like that.
  35. +libaggplatformX11_la_LDFLAGS = -version-info @AGG_LIB_VERSION@
  36. +else
  37. libaggplatformX11_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ -L@x_libraries@
  38. +endif
  39. +
  40. libaggplatformX11_la_SOURCES = agg_platform_support.cpp
  41. libaggplatformX11_la_CXXFLAGS = -I$(top_srcdir)/include -I@x_includes@
  42. libaggplatformX11_la_LIBADD = -lX11