forked from libuv/libuv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The existing probes, all two of them, cause a great deal of pain for people trying to build libuv on Linux because of SystemTap's dtrace(1) utilitity not understanding the -xnolibs flag. We could hack around that but it's easier to just remove the probes: they are largely useless and unused while still needing a lot of supporting infrastructure. This commit removes 200 lines of code and configuration. Refs joyent/libuv#1478.
- Loading branch information
1 parent
f914721
commit cb51400
Showing
8 changed files
with
1 addition
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -307,46 +307,7 @@ libuv_la_CFLAGS += -D__EXTENSIONS__ -D_XOPEN_SOURCE=500 | |
libuv_la_SOURCES += src/unix/sunos.c | ||
endif | ||
|
||
if HAVE_DTRACE | ||
BUILT_SOURCES = include/uv-dtrace.h | ||
CLEANFILES += include/uv-dtrace.h | ||
if FREEBSD | ||
libuv_la_LDFLAGS += -lelf | ||
endif | ||
endif | ||
|
||
if DTRACE_NEEDS_OBJECTS | ||
libuv_la_SOURCES += src/unix/uv-dtrace.d | ||
libuv_la_DEPENDENCIES = src/unix/uv-dtrace.o | ||
libuv_la_LIBADD = uv-dtrace.lo | ||
CLEANFILES += src/unix/uv-dtrace.o src/unix/uv-dtrace.lo | ||
endif | ||
|
||
if HAVE_PKG_CONFIG | ||
pkgconfigdir = $(libdir)/pkgconfig | ||
pkgconfig_DATA = @[email protected] | ||
endif | ||
|
||
if HAVE_DTRACE | ||
include/uv-dtrace.h: src/unix/uv-dtrace.d | ||
$(AM_V_GEN)$(DTRACE) $(DTRACEFLAGS) -h -xnolibs -s $< -o $(top_srcdir)/$@ | ||
endif | ||
|
||
if DTRACE_NEEDS_OBJECTS | ||
SUFFIXES = .d | ||
|
||
src/unix/uv-dtrace.o: src/unix/uv-dtrace.d ${libuv_la_OBJECTS} | ||
|
||
# It's ok to specify the output here, because we have 1 .d file, and we process | ||
# every created .o, most projects don't need to include more than one .d | ||
.d.o: | ||
$(AM_V_GEN)$(DTRACE) $(DTRACEFLAGS) -G -o $(top_builddir)/uv-dtrace.o -s $< \ | ||
`find ${top_builddir}/src -name "*.o"` | ||
$(AM_V_GEN)printf %s\\n \ | ||
'# ${top_builddir}/uv-dtrace.lo - a libtool object file' \ | ||
'# Generated by libtool (GNU libtool) 2.4' \ | ||
'# libtool wants a .lo not a .o' \ | ||
"pic_object='uv-dtrace.o'" \ | ||
"non_pic_object='uv-dtrace.o'" \ | ||
> ${top_builddir}/uv-dtrace.lo | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Ignore libtoolize-generated files. | ||
*.m4 | ||
!as_case.m4 | ||
!dtrace.m4 | ||
!libuv-check-flags.m4 | ||
!libuv-check-flags.m4 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters