diff options
| author | Michael Forney <mforney@mforney.org> | 2019-06-27 15:16:39 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-06-27 18:18:34 -0700 |
| commit | 1acbd4da02eb82a035c00a2f484364453469ff06 (patch) | |
| tree | baf1d665ad859818b63a523d105a5d8329446df1 /pkg/util-linux | |
| parent | fe0aae18e5024fc8027846fcec45fb5f1b7a11c9 (diff) | |
Detect TLS support in compiler
Diffstat (limited to 'pkg/util-linux')
| -rw-r--r-- | pkg/util-linux/config.h | 4 | ||||
| -rw-r--r-- | pkg/util-linux/gen.lua | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/pkg/util-linux/config.h b/pkg/util-linux/config.h index eb40fd42..9ef60753 100644 --- a/pkg/util-linux/config.h +++ b/pkg/util-linux/config.h @@ -200,7 +200,9 @@ #define HAVE_TERM_H 1 #define HAVE_TIMEGM 1 #define HAVE_TIMER_CREATE 1 -#define HAVE_TLS 1 +#ifdef HAVE__THREAD_LOCAL +# define HAVE_TLS 1 +#endif #define HAVE_TM_GMTOFF 1 #define HAVE_TM_ZONE 1 /* #undef HAVE_TZNAME */ diff --git a/pkg/util-linux/gen.lua b/pkg/util-linux/gen.lua index 7101697f..7cf5a177 100644 --- a/pkg/util-linux/gen.lua +++ b/pkg/util-linux/gen.lua @@ -1,12 +1,16 @@ set('version', '2.34.0') cflags{ '-include $dir/config.h', - '-I $dir', '-I $outdir', '-I $srcdir/include', '-I $srcdir/libuuid/src', } +build('cat', '$outdir/config.h', { + '$builddir/probe/HAVE__THREAD_LOCAL', + '$dir/config.h', +}) + build('sed', '$outdir/libsmartcols.h', '$srcdir/libsmartcols/src/libsmartcols.h.in', { expr='s,@LIBSMARTCOLS_VERSION@,$version,', }) @@ -21,6 +25,7 @@ build('sed', '$outdir/libfdisk.h', '$srcdir/libfdisk/src/libfdisk.h.in', { pkg.hdrs = copy('$outdir/include/uuid', '$srcdir/libuuid/src', {'uuid.h'}) pkg.deps = { + '$outdir/config.h', '$outdir/libsmartcols.h', '$outdir/libfdisk.h', } |
