From a70c7531ed3a6378dd527da005a1fe63fbb4871a Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Thu, 31 Dec 2015 17:49:25 +0100 Subject: Drop OTHERLIBS and use LDLIBS exclusively When cross-compiling, OTHERLIBS magically turns -lpthread into the path to the host libpthread.so file, resulting in build issues. LDLIBS does not suffer from this problem and it seems that is already being used in other Makefiles. This patch removes OTHERLIBS entirely from the build system. * Makeconf: Remove references to OTHERLIBS * auth/Makefile: Replace OTHERLIBS with LDLIBS. * boot/Makefile: Likewise. * console/Makefile: Likewise. * exec/Makefile: Likewise. * ext2fs/Makefile: Likewise. * fatfs/Makefile: Likewise. * ftpfs/Makefile: Likewise. * hostmux/Makefile: Likewise. * isofs/Makefile: Likewise. * libhurd-slab/Makefile: Likewise. * nfs/Makefile: Likewise. * nfsd/Makefile: Likewise. * pfinet/Makefile: Likewise. * proc/Makefile: Likewise. * procfs/Makefile: Likewise. * random/Makefile: Likewise. * storeio/Makefile: Likewise. * term/Makefile: Likewise. * tmpfs/Makefile: Likewise. * usermux/Makefile: Likewise. --- Makeconf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Makeconf') diff --git a/Makeconf b/Makeconf index dc435db1..8e24fc44 100644 --- a/Makeconf +++ b/Makeconf @@ -36,7 +36,6 @@ # Types `server' and `utility' should define # target (the name of the program built) -# OTHERLIBS (all libraries used) # Types `servers' and `utilities' should define # targets (the names of all the programs built) @@ -309,7 +308,7 @@ $(installationdirlist): %: ifneq ($(makemode),misc) ifeq ($(doinst),one) -$(linktarg): $(OBJS) $(OTHERLIBS) $(library_deps) +$(linktarg): $(OBJS) $(library_deps) endif # Determine which sort of library we should link against from whether -static -- cgit v1.2.3