Fix build with -fno-common
While this makes the build process proceed past the point where the it previously failed with -fno-common, it still fails later in the examples. There is a comment in a README file that mentions BUILD_EXAMPLES_FROM_TREE, but I could not find any actual reference to that parameter outside the README file and the build failed with and without it set. This commit is meant to document the changes require due to -no-common and I leave the fix required in lttng-ust-2.9.0/doc/examples/gen-tp for a later time or another committer. The PORTREVISION is not bumped, since the build still fails for me.
This commit is contained in:
parent
64680c4bd0
commit
65114dbd39
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547532
2 changed files with 20 additions and 0 deletions
|
@ -20,3 +20,12 @@
|
|||
|
||||
#include <usterr-signal-safe.h>
|
||||
#include <ust-comm.h>
|
||||
@@ -76,7 +88,7 @@ extern void lttng_ring_buffer_client_discard_exit(void
|
||||
extern void lttng_ring_buffer_client_discard_rt_exit(void);
|
||||
extern void lttng_ring_buffer_metadata_client_exit(void);
|
||||
|
||||
-volatile enum ust_loglevel ust_loglevel;
|
||||
+extern volatile enum ust_loglevel ust_loglevel;
|
||||
|
||||
int ustctl_release_handle(int sock, int handle)
|
||||
{
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
--- liblttng-ust-fd/lttng-ust-fd.c.orig 2016-11-29 01:46:24 UTC
|
||||
+++ liblttng-ust-fd/lttng-ust-fd.c
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <helper.h>
|
||||
#include "usterr-signal-safe.h"
|
||||
|
||||
-volatile enum ust_loglevel ust_loglevel;
|
||||
+extern volatile enum ust_loglevel ust_loglevel;
|
||||
|
||||
static int (*__lttng_ust_fd_plibc_close)(int fd);
|
||||
|
Loading…
Reference in a new issue