From a9e307a55f6af7dc23c308a99fd6448f1611bfa9 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 27 Jun 2020 11:47:59 +0200 Subject: [PATCH] tempname et al.: Fix link errors on MSVC (regression from 2020-05-31). * modules/tempname (Link): New section. * modules/mkdtemp (Link): Likewise. * modules/clean-temp (Link): Likewise. * modules/mkstemp (Link): Likewise. * modules/stdlib-safer (Link): Likewise. * modules/mkstemps (Link): Likewise. * modules/mkostemp (Link): Likewise. * modules/mkostemps (Link): Likewise. * modules/tmpfile (Link): Likewise. * modules/tmpfile-safer (Link): Likewise. * modules/javacomp (Link): Add $(LIB_GETRANDOM). * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with $(LIB_GETRANDOM). * NEWS: Mention the changes. --- ChangeLog | 18 ++++++++++++++++++ NEWS | 13 +++++++++++++ modules/argv-iter-tests | 1 + modules/clean-temp | 3 +++ modules/javacomp | 1 + modules/mkdtemp | 3 +++ modules/mkostemp | 3 +++ modules/mkostemps | 3 +++ modules/mkstemp | 3 +++ modules/mkstemps | 3 +++ modules/stdlib-safer | 3 +++ modules/tempname | 3 +++ modules/tmpfile | 3 +++ modules/tmpfile-safer | 3 +++ 14 files changed, 63 insertions(+) diff --git a/ChangeLog b/ChangeLog index 43506ffa2c..eb3b4bc8f3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,21 @@ +2020-06-27 Bruno Haible + + tempname et al.: Fix link errors on MSVC (regression from 2020-05-31). + * modules/tempname (Link): New section. + * modules/mkdtemp (Link): Likewise. + * modules/clean-temp (Link): Likewise. + * modules/mkstemp (Link): Likewise. + * modules/stdlib-safer (Link): Likewise. + * modules/mkstemps (Link): Likewise. + * modules/mkostemp (Link): Likewise. + * modules/mkostemps (Link): Likewise. + * modules/tmpfile (Link): Likewise. + * modules/tmpfile-safer (Link): Likewise. + * modules/javacomp (Link): Add $(LIB_GETRANDOM). + * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with + $(LIB_GETRANDOM). + * NEWS: Mention the changes. + 2020-06-27 Bruno Haible fopen-gnu: Simplify code. diff --git a/NEWS b/NEWS index c8f78ea161..5684494c8d 100644 --- a/NEWS +++ b/NEWS @@ -58,6 +58,19 @@ User visible incompatible changes Date Modules Changes +2020-06-27 tempname The link requirements of these modules are changed + mkdtemp from empty to $(LIB_GETRANDOM). + mkstemp + mkstemps + mkostemp + mkostemps + tmpfile + stdlib-safer + tmpfile-safer + clean-temp + javacomp $(LIB_GETRANDOM) was added to the link requirements + of this module. + 2020-05-27 read-file The functions provided by this module now take an 'int flags' argument to modify the file reading behavior. The read_binary_file function has been diff --git a/modules/argv-iter-tests b/modules/argv-iter-tests index f32587e050..97cbe50e9f 100644 --- a/modules/argv-iter-tests +++ b/modules/argv-iter-tests @@ -10,3 +10,4 @@ configure.ac: Makefile.am: TESTS += test-argv-iter check_PROGRAMS += test-argv-iter +test_argv_iter_LDADD = $(LDADD) $(LIB_GETRANDOM) diff --git a/modules/clean-temp b/modules/clean-temp index d5c44ee294..abed9b9a78 100644 --- a/modules/clean-temp +++ b/modules/clean-temp @@ -31,6 +31,9 @@ lib_SOURCES += clean-temp.h clean-temp.c Include: "clean-temp.h" +Link: +$(LIB_GETRANDOM) + License: GPL diff --git a/modules/javacomp b/modules/javacomp index 055279771f..5f8f60f55d 100644 --- a/modules/javacomp +++ b/modules/javacomp @@ -43,6 +43,7 @@ Include: Link: $(LIB_MBRTOWC) +$(LIB_GETRANDOM) License: GPL diff --git a/modules/mkdtemp b/modules/mkdtemp index 3bd83e2262..13b2d5affd 100644 --- a/modules/mkdtemp +++ b/modules/mkdtemp @@ -23,6 +23,9 @@ Makefile.am: Include: +Link: +$(LIB_GETRANDOM) + License: LGPLv2+ diff --git a/modules/mkostemp b/modules/mkostemp index afa49d60e7..460e842cdc 100644 --- a/modules/mkostemp +++ b/modules/mkostemp @@ -26,6 +26,9 @@ Makefile.am: Include: +Link: +$(LIB_GETRANDOM) + License: LGPLv2+ diff --git a/modules/mkostemps b/modules/mkostemps index fb956f9c5a..bb9fe716b7 100644 --- a/modules/mkostemps +++ b/modules/mkostemps @@ -25,6 +25,9 @@ Makefile.am: Include: +Link: +$(LIB_GETRANDOM) + License: LGPLv2+ diff --git a/modules/mkstemp b/modules/mkstemp index 780908fea0..d985715836 100644 --- a/modules/mkstemp +++ b/modules/mkstemp @@ -24,6 +24,9 @@ Makefile.am: Include: +Link: +$(LIB_GETRANDOM) + License: LGPLv2+ diff --git a/modules/mkstemps b/modules/mkstemps index 61af8d5fcd..1e5f0974c5 100644 --- a/modules/mkstemps +++ b/modules/mkstemps @@ -24,6 +24,9 @@ Makefile.am: Include: +Link: +$(LIB_GETRANDOM) + License: LGPLv2+ diff --git a/modules/stdlib-safer b/modules/stdlib-safer index 8dbd682b46..80414b3207 100644 --- a/modules/stdlib-safer +++ b/modules/stdlib-safer @@ -20,6 +20,9 @@ lib_SOURCES += mkstemp-safer.c Include: "stdlib-safer.h" +Link: +$(LIB_GETRANDOM) + License: GPL diff --git a/modules/tempname b/modules/tempname index 0f692d3d7c..ca885220c2 100644 --- a/modules/tempname +++ b/modules/tempname @@ -26,6 +26,9 @@ lib_SOURCES += tempname.c Include: "tempname.h" +Link: +$(LIB_GETRANDOM) + License: LGPLv2+ diff --git a/modules/tmpfile b/modules/tmpfile index 884f284f22..20b88c81a4 100644 --- a/modules/tmpfile +++ b/modules/tmpfile @@ -26,6 +26,9 @@ Makefile.am: Include: +Link: +$(LIB_GETRANDOM) + License: LGPL diff --git a/modules/tmpfile-safer b/modules/tmpfile-safer index d63559e153..02e49d4ab2 100644 --- a/modules/tmpfile-safer +++ b/modules/tmpfile-safer @@ -20,6 +20,9 @@ lib_SOURCES += tmpfile-safer.c Include: "stdio-safer.h" +Link: +$(LIB_GETRANDOM) + License: GPL -- 2.39.5