summaryrefslogtreecommitdiff
path: root/usr/src/tools/ctf
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2020-01-17 09:49:43 -0800
committerToomas Soome <tsoome@me.com>2020-02-05 19:00:00 +0200
commit5801b0f01c3c34499a929ed96164a5a68b470945 (patch)
tree50e06e6f9eb27ea820f4f4e711c485499aad6e86 /usr/src/tools/ctf
parent948761701ebc8a0cf820a973780b2fbb931c4390 (diff)
downloadillumos-gate-5801b0f01c3c34499a929ed96164a5a68b470945.tar.gz
12217 add ld assert-deflib and guidance to gate build
Reviewed by: Robert Mustacchi <rm@fingolfin.org> Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/tools/ctf')
-rw-r--r--usr/src/tools/ctf/ctfconvert/Makefile.com2
-rw-r--r--usr/src/tools/ctf/ctfdiff/Makefile.com2
-rw-r--r--usr/src/tools/ctf/ctfdump/Makefile.com2
-rw-r--r--usr/src/tools/ctf/ctfmerge/Makefile.com1
-rw-r--r--usr/src/tools/ctf/dwarf/Makefile.com1
-rw-r--r--usr/src/tools/ctf/libctf/Makefile.com1
-rw-r--r--usr/src/tools/ctf/stabs/Makefile.com11
7 files changed, 11 insertions, 9 deletions
diff --git a/usr/src/tools/ctf/ctfconvert/Makefile.com b/usr/src/tools/ctf/ctfconvert/Makefile.com
index 33268bd979..dd79ce02b0 100644
--- a/usr/src/tools/ctf/ctfconvert/Makefile.com
+++ b/usr/src/tools/ctf/ctfconvert/Makefile.com
@@ -16,10 +16,12 @@ include ../../Makefile.ctf
CFLAGS += $(CCVERBOSE)
LDLIBS += -lctf -lelf
+NATIVE_LIBS += libelf.so libc.so
LDFLAGS = \
-L$(ROOTONBLDLIBMACH) \
'-R$$ORIGIN/../../lib/$(MACH)' \
+ $(BDIRECT) $(ZLAZYLOAD)
CPPFLAGS += -include ../../common/ctf_headers.h
diff --git a/usr/src/tools/ctf/ctfdiff/Makefile.com b/usr/src/tools/ctf/ctfdiff/Makefile.com
index 3c5e19fb6e..6ceb863e66 100644
--- a/usr/src/tools/ctf/ctfdiff/Makefile.com
+++ b/usr/src/tools/ctf/ctfdiff/Makefile.com
@@ -16,10 +16,12 @@ include ../../Makefile.ctf
CFLAGS += $(CCVERBOSE)
LDLIBS += -lctf
+NATIVE_LIBS += libc.so
LDFLAGS = \
-L$(ROOTONBLDLIBMACH) \
'-R$$ORIGIN/../../lib/$(MACH)' \
+ $(BDIRECT)
CPPFLAGS += -include ../../common/ctf_headers.h
diff --git a/usr/src/tools/ctf/ctfdump/Makefile.com b/usr/src/tools/ctf/ctfdump/Makefile.com
index 66e7a170c4..3efd986e16 100644
--- a/usr/src/tools/ctf/ctfdump/Makefile.com
+++ b/usr/src/tools/ctf/ctfdump/Makefile.com
@@ -19,10 +19,12 @@ CSTD = $(CSTD_GNU99)
C99LMODE = -Xc99=%all
CFLAGS += $(CCVERBOSE)
LDLIBS += -lctf
+NATIVE_LIBS += libctf.so libc.so
LDFLAGS = \
-L$(ROOTONBLDLIBMACH) \
'-R$$ORIGIN/../../lib/$(MACH)' \
+ $(BDIRECT)
CPPFLAGS += -include ../../common/ctf_headers.h
diff --git a/usr/src/tools/ctf/ctfmerge/Makefile.com b/usr/src/tools/ctf/ctfmerge/Makefile.com
index a073007cb4..84eb3c5969 100644
--- a/usr/src/tools/ctf/ctfmerge/Makefile.com
+++ b/usr/src/tools/ctf/ctfmerge/Makefile.com
@@ -21,6 +21,7 @@ LDFLAGS += \
-L$(ROOTONBLDLIBMACH) \
'-R$$ORIGIN/../../lib/$(MACH)' \
+NATIVE_LIBS += libelf.so
CPPFLAGS += -include ../../common/ctf_headers.h
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += $(CNOWARN_UNINIT)
diff --git a/usr/src/tools/ctf/dwarf/Makefile.com b/usr/src/tools/ctf/dwarf/Makefile.com
index 52aedda3a7..374dee98f1 100644
--- a/usr/src/tools/ctf/dwarf/Makefile.com
+++ b/usr/src/tools/ctf/dwarf/Makefile.com
@@ -83,6 +83,7 @@ SMATCH=off
DYNFLAGS += '-R$$ORIGIN/../../lib/$(MACH)'
LDLIBS = -lelf -lc
+NATIVE_LIBS += libelf.so libc.so
.KEEP_STATE:
.PARALLEL:
diff --git a/usr/src/tools/ctf/libctf/Makefile.com b/usr/src/tools/ctf/libctf/Makefile.com
index 89769c5521..31b5d19f4d 100644
--- a/usr/src/tools/ctf/libctf/Makefile.com
+++ b/usr/src/tools/ctf/libctf/Makefile.com
@@ -26,6 +26,7 @@ CPPFLAGS += -I$(SRC)/lib/libctf/common/ \
-DCTF_OLD_VERSIONS \
-DCTF_TOOLS_BUILD
LDLIBS += -lc -lelf -L$(ROOTONBLDLIBMACH) -ldwarf -lavl
+NATIVE_LIBS += libelf.so libavl.so libc.so
DYNFLAGS += '-R$$ORIGIN/../../lib/$(MACH)'
.KEEP_STATE:
diff --git a/usr/src/tools/ctf/stabs/Makefile.com b/usr/src/tools/ctf/stabs/Makefile.com
index 97d9cddb77..901acd2584 100644
--- a/usr/src/tools/ctf/stabs/Makefile.com
+++ b/usr/src/tools/ctf/stabs/Makefile.com
@@ -39,16 +39,15 @@ SRCS = \
include ../../Makefile.ctf
LDLIBS += -lctf
+NATIVE_LIBS += libctf.so
OBJS = $(SRCS:%.c=%.o)
-LINTFILES = $(SRCS:%.c=%.ln)
-LINTFLAGS = -mnux -L$(ROOT)/usr/lib
CERRWARN += $(CNOWARN_UNINIT)
CERRWARN += -_gcc=-Wno-unused
.NO_PARALLEL:
-.PARALLEL: $(OBJS) $(LINTFILES)
+.PARALLEL: $(OBJS)
all: $(PROG)
@@ -66,10 +65,4 @@ install: $(ROOTONBLDMACHPROG)
clean:
$(RM) $(OBJS) $(LINTFILES)
-%.ln: ../common/%.c
- $(LINT.c) -c $<
-
-lint: $(LINTFILES)
- $(LINT) $(LINTFLAGS) $(LINTFILES) $(LDLIBS)
-
include ../../Makefile.ctf.targ