[DTrace-devel] [PATCH v2 05/23] build: add a 'make native' target

Nick Alcock nick.alcock at oracle.com
Mon Nov 27 16:47:11 UTC 2023


This trivial target makes only those portions of DTrace that don't
need a BPF cross-compiler.

(The resulting program won't work very well unless you do a full make,
but for some uses -- like wrapping the compilation on a machine that
doesn't have such a compiler, for compilation databases -- it's useful.)

Signed-off-by: Nick Alcock <nick.alcock at oracle.com>
---
 Maketargets | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Maketargets b/Maketargets
index 830c16467389..246529c4238d 100644
--- a/Maketargets
+++ b/Maketargets
@@ -1,7 +1,7 @@
 # Miscellaneous targets.
 #
 # Oracle Linux DTrace.
-# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
 # Licensed under the Universal Permissive License v 1.0 as shown at
 # http://oss.oracle.com/licenses/upl.
 
@@ -19,6 +19,8 @@ help::
 
 all:: $(TARGETS)
 
+native:: $(filter-out bpflibs,$(TARGETS))
+
 clean::
 	$(call describe-target,CLEAN,$(objdir) test/log)
 	-rm -rf $(objdir) test/log
-- 
2.42.0.271.g85384428f1




More information about the DTrace-devel mailing list