summaryrefslogtreecommitdiff
path: root/lang/gcc3-ada/patches/patch-ae
blob: 21a306fe0fdf0034db8db9620d1a53c35e81946d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-ae,v 1.1 2003/07/06 12:15:06 drochner Exp $

--- gcc/ada/Makefile.in.orig	2003-03-27 22:48:10.000000000 +0100
+++ gcc/ada/Makefile.in	2003-07-06 13:06:33.000000000 +0200
@@ -183,6 +183,8 @@
 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
 
+prefix = @prefix@
+
 # Directory where sources are, from where we are.
 srcdir = @srcdir@
 VPATH = @srcdir@
@@ -242,14 +244,14 @@
 ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
 
 # This is where we get libiberty.a from.
-LIBIBERTY = ../../libiberty/libiberty.a
+LIBIBERTY = ${prefix}/lib/libiberty.a
 
 # How to link with both our special library facilities
 # and the system's installed libraries.
 LIBS = $(INTLLIBS) $(LIBIBERTY) $(SYSLIBS)
 LIBDEPS = $(INTLDEPS) $(LIBIBERTY)
 TOOLS_LIBS = ../../prefix.o ../../version.o $(LIBGNAT) \
-	../../../libiberty/libiberty.a $(SYSLIBS)
+	${prefix}/lib/libiberty.a $(SYSLIBS)
 
 # Specify the directories to be searched for header files.
 # Both . and srcdir are used, in that order,