From 9dbf4474d1ac96a16cb67342bd21ea0bc82bd8f3 Mon Sep 17 00:00:00 2001 From: shura Date: Sat, 21 Aug 2021 19:34:35 +0300 Subject: [PATCH] changesin Jam* --- Jamrules | 8 ++++++-- Jamrules.configure | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Jamrules b/Jamrules index 279eaec..3c0d8b3 100644 --- a/Jamrules +++ b/Jamrules @@ -1,8 +1,12 @@ if ! $(THIS_IS_K8JAM) { Exit "You need k8jam to build this Download it here: http://repo.or.cz/w/k8jam.git" ; } #if ! $(OPT) { OPT = size ; } -set-profile ; +CFLAGS.all += -Wall -Isrc ; +if $(debug) { + CFLAGS.all += -O0 -g3 ; +} else { + set-profile ; +} set-target-locations ; - softinclude $(TOP)/Jamrules.configure ; if $(_USE_GIT_VERSION) = tan { diff --git a/Jamrules.configure b/Jamrules.configure index 0b547a9..ad55ca1 100644 --- a/Jamrules.configure +++ b/Jamrules.configure @@ -5,9 +5,10 @@ rule -configure- { "X11" "x11" ; if $(OS) == "MACOSX" { + -configure-add-line- "CFLAGS.all += -D__MACOSX__ ;" ; -configure-add-line- "LINKLIBS.all += -liconv ;" ; } else { - -configure-add-line- "LINKLIBS.all += -lrt ;" ; + -configure-add-line- "LINKLIBS.all += -lrt -ldl ;" ; } -configure-add-line- "LINKLIBS.all += -lutil ;" ; # openpty() # -- 2.11.4.GIT