This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Is elf proected for cross-compiling?


On Thu, Mar 15, 2001 at 12:37:25PM -0800, H . J . Lu wrote:
> On Thu, Mar 15, 2001 at 12:08:16PM -0800, Ulrich Drepper wrote:
> > "H . J . Lu" <hjl@lucon.org> writes:
> > 
> > > Is the elf directory proected from cross-compiling? "make check"
> > > stopped in elf when I did cross-compiling.
> > 
> > There is no reason for that.
> > 
> 
> I don't think so. Here is a patch.
> 
> 
> H.J.
> ---
> 2001-03-15  H.J. Lu  (hjl@gnu.org)
> 
> 	* elf/Makefile ($(objpfx)tst-pathopt.out): Protected against
> 	cross-compiling.
> 

The patch is wrong. I didn't catch the problem since tst-pathopt.out
was there from the last failed run. I think this one is correct.

Thanks.


H.J.
----
2001-03-21  H.J. Lu  <hjl@gnu.org>

	* elf/Makefile (tests): Don't depend on $(objpfx)tst-pathopt.out
	for cross-compiling.
	$(objpfx)tst-pathopt.out):Undo the last change.

--- elf/Makefile.cross	Mon Mar 19 10:36:16 2001
+++ elf/Makefile	Wed Mar 21 11:02:54 2001
@@ -246,8 +246,10 @@ test-modules = $(addprefix $(objpfx),$(a
 generated += $(addsuffix .so,$(strip $(modules-names)))
 
 ifeq (yes,$(build-shared))
+ifeq ($(cross-compiling),no)
 tests: $(objpfx)tst-pathopt.out
 endif
+endif
 
 $(objpfx)testobj1.so: $(libdl)
 $(objpfx)testobj1_1.so: $(objpfx)testobj1.so $(libdl)
@@ -389,11 +391,9 @@ $(objpfx)lateglobal: $(libdl)
 $(objpfx)lateglobal.out: $(objpfx)ltglobmod1.so $(objpfx)ltglobmod2.so
 
 $(objpfx)tst-pathopt: $(libdl)
-ifeq ($(cross-compiling),no)
 $(objpfx)tst-pathopt.out: tst-pathopt.sh $(objpfx)tst-pathopt \
 			  $(objpfx)pathoptobj.so
 	$(SHELL) -e $< $(common-objpfx)
-endif
 
 $(objpfx)initfirst: $(libdl)
 $(objpfx)initfirst.out: $(objpfx)firstobj.so


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]