From 40f44c22980b24cd0f7ac5c180fd04575ec0dcc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Fri, 1 Jul 2005 10:00:39 +0000 Subject: [PATCH] fixed jam build on R5, hopefully it's still working on Zeta ... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13383 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/jam/Jamfile | 5 ----- src/tools/jam/Makefile | 6 ++++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/tools/jam/Jamfile b/src/tools/jam/Jamfile index 1e60c466b4..a65dab29bf 100644 --- a/src/tools/jam/Jamfile +++ b/src/tools/jam/Jamfile @@ -118,11 +118,6 @@ if $(VMS) CCFLAGS += /define=VMS ; } -# Need to link against -lnet -if $(OS) = BEOS { -# LINKLIBS += -lnet ; -} - if $(OS) = BEOS { DEFINES += _ZETA_USING_DEPRECATED_API_=1 ; } diff --git a/src/tools/jam/Makefile b/src/tools/jam/Makefile index a4167f24e2..b16cd5be93 100644 --- a/src/tools/jam/Makefile +++ b/src/tools/jam/Makefile @@ -53,7 +53,9 @@ HOST_SYSTEM=$(shell uname) # BeOS (R5 only, actually, but who cares) ifeq ($(HOST_SYSTEM), BeOS) -# LINKLIBS = -lnet + ifeq ($(shell sh -c "strings /system/lib/libroot.so | grep uname"), ) + LINKLIBS = -lnet + endif endif SOURCES = \ @@ -65,7 +67,7 @@ SOURCES = \ rules.c scan.c search.c timestamp.c variable.c all: $(EXENAME) - $(EXENAME) + LINKLIBS=$(LINKLIBS) $(EXENAME) $(EXENAME): $(CC) $(TARGET) $(CFLAGS) $(SOURCES) $(LINKLIBS)