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]

[PATCH] libanl Makefile fix


Hi!

make -j 6 failed because resolv was built before linuxthreads, which should
be fixed by added Depend. Also, I think libanl/ga_test should only be built
if libpthread is being built.

2001-03-06  Jakub Jelinek  <jakub@redhat.com>

	* resolv/Depend: New file.
	* resolv/Makefile (extra-libs, tests): Build libanl and ga_test only
	when libpthread is built.

--- libc/resolv/Depend.jj	Tue Mar  6 22:07:42 2001
+++ libc/resolv/Depend	Tue Mar  6 22:07:37 2001
@@ -0,0 +1 @@
+linuxthreads
--- libc/resolv/Makefile.jj	Mon Mar  5 11:58:07 2001
+++ libc/resolv/Makefile	Tue Mar  6 22:11:32 2001
@@ -35,7 +35,10 @@ tests = tst-aton
 
 include ../Makeconfig
 
-extra-libs := libresolv libanl libnss_dns
+extra-libs := libresolv libnss_dns
+ifeq ($(have-thread-library),yes)
+extra-libs += libanl
+endif
 extra-libs-others = $(extra-libs)
 libresolv-routines := gethnamaddr res_comp res_debug	\
 		      res_data res_mkquery res_query res_send		\
@@ -54,7 +57,7 @@ ifneq ($(build-static-nss),yes)
 libnss_dns-inhibit-o	= $(filter-out .os,$(object-suffixes))
 endif
 
-ifeq (yes,$(build-shared))
+ifeq (yesyes,$(build-shared)$(have-thread-library))
 tests: $(objpfx)ga_test
 endif
 

	Jakub


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