From 8015e2ae3231a93132844ba01decf624ad68f045 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 16 Apr 2006 20:27:11 +0000 Subject: [PATCH] - avoid -L/usr/lib poisoning Changed files: allegro-config.patch -> 1.1 --- allegro-config.patch | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 allegro-config.patch diff --git a/allegro-config.patch b/allegro-config.patch new file mode 100644 index 0000000..81c127d --- /dev/null +++ b/allegro-config.patch @@ -0,0 +1,29 @@ +--- allegro-4.2.0/misc/allegro-config.in.orig 2006-04-16 21:20:38.000000000 +0200 ++++ allegro-4.2.0/misc/allegro-config.in 2006-04-16 21:38:38.000000000 +0200 +@@ -13,6 +13,7 @@ + + prefix=@prefix@ + exec_prefix=$prefix ++libdir=@libdir@ + exec_prefix_set=no + include_prefix=@INCLUDE_PREFIX@ + +@@ -178,11 +179,15 @@ + fi + + if test "$echo_libs" = "yes"; then +- libdirs=-L${exec_prefix}/lib ++ if test "$exec_prefix" = "/usr"; then ++ libdirs= ++ else ++ libdirs="-L${libdir}" ++ fi + if test "$static_libs" = "yes"; then +- echo $libdirs $allegro_ldflags -l${lib_type} $allegro_libs ++ echo $libdirs$allegro_ldflags -l${lib_type} $allegro_libs + else +- echo $libdirs $allegro_ldflags -l${lib_type}-${version} -l${lib_type}_unsharable ++ echo $libdirs$allegro_ldflags -l${lib_type}-${version} -l${lib_type}_unsharable + fi + fi + -- 2.44.0