808322a
diff -up allegro-4.2.2/misc/allegro-config.in.multilib2 allegro-4.2.2/misc/allegro-config.in
808322a
--- allegro-4.2.2/misc/allegro-config.in.multilib2	2007-07-22 09:45:47.000000000 +0200
808322a
+++ allegro-4.2.2/misc/allegro-config.in	2007-07-24 21:27:21.000000000 +0200
808322a
@@ -16,15 +16,22 @@ exec_prefix=$prefix
cd0c4c9
 exec_prefix_set=no
cd0c4c9
 include_prefix=@INCLUDE_PREFIX@
808322a
 include_path=@includedir@
808322a
-lib_path=@libdir@
808322a
 bin_path=@bindir@
aa5f9d5
+arch=$(/bin/arch)
aa5f9d5
+if [ "$arch" = "x86_64" -o "$arch" = "s390x" -o "$arch" = "ppc64" \
aa5f9d5
+    -o "$arch" = "ia64" ];
aa5f9d5
+then
808322a
+    lib_path="/usr/lib64"
aa5f9d5
+else
808322a
+    lib_path="/usr/lib"
aa5f9d5
+fi
cd0c4c9
 
cd0c4c9
 static_libs=@LINK_WITH_STATIC_LIBS@
cd0c4c9
 lib_type=@LIB_TO_LINK@
aa5f9d5
 
aa5f9d5
 accepts_frameworks=no
aa5f9d5
 
aa5f9d5
-allegro_ldflags="@LDFLAGS@"
aa5f9d5
+allegro_ldflags="-Wl,--export-dynamic "
aa5f9d5
 allegro_libs="@LIBS@"
aa5f9d5
 allegro_frameworks="@FRAMEWORKS@"
aa5f9d5
 allegro_cflags=""