[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
building in object directory
From: |
Jay A. St. Pierre |
Subject: |
building in object directory |
Date: |
Fri, 1 Nov 2002 15:26:11 -0700 (MST) |
On Solaris 8, if I try to do this:
tar xvzf gawk-3.1.1.tar.gz
mkdir gawk-3.1.1-obj
cd gawk-3.1.1-obj
../gawk-3.1.1/configure --src=../gawk-3.1.1
make
The build fails because it can't find custom.h:
make 'CFLAGS=-g -O2' 'LDFLAGS=' all-recursive
make[1]: Entering directory `/appl/sde/src/gnu/gnu-src/gawk-3.1.1-obj'
Making all in intl
make[2]: Entering directory `/appl/sde/src/gnu/gnu-src/gawk-3.1.1-obj/intl'
/usr/local/share/bin/gcc -c -DLOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DIN_LIBINTL -DHAVE_CONFIG_H -I.. -I. -I../../gawk-3.1.1/intl -g -O2
../../gawk-3.1.1/intl/intl-compat.c
In file included from ../../gawk-3.1.1/intl/intl-compat.c:21:
../config.h:376: custom.h: No such file or directory
make[2]: *** [intl-compat.o] Error 1
make[2]: Leaving directory `/appl/sde/src/gnu/gnu-src/gawk-3.1.1-obj/intl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/appl/sde/src/gnu/gnu-src/gawk-3.1.1-obj'
make: *** [all] Error 2
I was able to correct this by changing the intl/Makefile.in to
add -I$(top_srcdir) to the variable INCLUDES (see diff below). I
don't know if this is the "right" way to fix it, but it works.
-Jay
--- gawk-3.1.1.orig/intl/Makefile.in 2002-04-28 08:01:51.000000000 -0600
+++ gawk-3.1.1/intl/Makefile.in 2002-11-01 14:56:18.212569000 -0700
@@ -103,7 +103,7 @@
sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $< > t-$@
mv t-$@ $@
-INCLUDES = -I.. -I. -I$(top_srcdir)/intl
+INCLUDES = -I.. -I. -I$(top_srcdir) -I$(top_srcdir)/intl
all: address@hidden@
all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- building in object directory,
Jay A. St. Pierre <=