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

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Patches for building in sourcedir



Building the current glibc in the sourcedir and running make check
gives problems like:

/bin/sh -e tst-gettext.sh ../ 
tst-gettext: error while loading shared libraries: tst-gettext: cannot open shared object file: No such file or directory
make[1]: *** [do-gettext-test] Error 127

The problem is this rule:
do-gettext-test: tst-gettext.sh $(objpfx)tst-gettext
	$(SHELL) -e $< $(common-objpfx) $(objpfx)

I'm appending a patch for this and similiar bugs.

Ok to install?

Andreas

2000-07-11  Andreas Jaeger  <aj@suse.de>

	* stdlib/Makefile (test-canon-ARGS): Fix for building in the
	source dir.
	* intl/Makefile (do-gettext-test): Likewise.
	* dirent/Makefile (opendir-tst1-ARGS): Likewise.

============================================================
Index: stdlib/Makefile
--- stdlib/Makefile	2000/05/17 11:02:24	1.59
+++ stdlib/Makefile	2000/07/11 16:29:16
@@ -127,7 +127,7 @@
 endif
 
 # Testdir has to be named stdlib and needs to be writable
-test-canon-ARGS = --test-dir=${objdir}/stdlib
+test-canon-ARGS = --test-dir=${common-objpfx}stdlib
 
 # Run a test on the header files we use.
 tests: $(objpfx)isomac
============================================================
Index: intl/Makefile
--- intl/Makefile	2000/07/01 15:35:55	1.25
+++ intl/Makefile	2000/07/11 16:29:16
@@ -51,7 +51,7 @@
 .PHONY: do-gettext-test
 tests: do-gettext-test
 do-gettext-test: tst-gettext.sh $(objpfx)tst-gettext
-	$(SHELL) -e $< $(common-objpfx) $(objpfx)
+	$(SHELL) -e $< $(common-objpfx) $(common-objpfx)intl/
 endif
 endif
 endif
============================================================
Index: dirent/Makefile
--- dirent/Makefile	2000/05/17 11:02:24	1.19
+++ dirent/Makefile	2000/07/11 16:42:29
@@ -1,4 +1,4 @@
-# Copyright (C) 1991,92,93,94,95,96,97,98,99 Free Software Foundation, Inc.
+# Copyright (C) 1991,92,93,94,95,96,97,98,99,2000 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
@@ -32,4 +32,4 @@
 
 include ../Rules
 
-opendir-tst1-ARGS = --test-dir=${objdir}
+opendir-tst1-ARGS = --test-dir=${common-objpfx}dirent

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de

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