Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > abea90999e3e6d99e357d9c7cb7d011e > files > 4

GtkAda-2.14.1-4.fc15.src.rpm

--- projects/generate_prj.sh	2010-09-25 22:47:31.000000000 +0200
+++ projects/generate_prj.sh	2010-09-25 22:42:39.000000000 +0200
@@ -3,7 +3,7 @@
 module=${1:-}
 bindir="$2"
 incdir="$3"
-libdir="$4"
+libdir="/usr/\" & Common.Lib & \""
 libsubdir_static="$5"
 libsubdir_shared="$6"
 alisubdir_static="$7"
@@ -33,7 +33,7 @@
    if [ "$lcmodule" = "gtkada" ]; then
       previous=""
       for lib in $libs; do
-         if [ "$lib" != "-lgtkada" ]; then
+         if [[ "$lib" != "-lgtkada" && "$lib" != -L/usr/lib* ]]; then
             if [ x"$previous" != x"" ]; then
                 echo "        \"$previous\","
             fi
@@ -78,6 +78,7 @@
   default=$3
 
   cat <<EOF > ${lc}.gpr
+with "common";
 project ${uc} is
 
    type Gtkada_Kind_Type is ("static", "relocatable");