SOURCES: allegro-config.patch (NEW) - avoid -L/usr/lib poisoning

qboosh qboosh at pld-linux.org
Sun Apr 16 22:27:16 CEST 2006


Author: qboosh                       Date: Sun Apr 16 20:27:16 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- avoid -L/usr/lib poisoning

---- Files affected:
SOURCES:
   allegro-config.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/allegro-config.patch
diff -u /dev/null SOURCES/allegro-config.patch:1.1
--- /dev/null	Sun Apr 16 22:27:16 2006
+++ SOURCES/allegro-config.patch	Sun Apr 16 22:27:11 2006
@@ -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
+ 
================================================================


More information about the pld-cvs-commit mailing list