summaryrefslogtreecommitdiff
path: root/os2
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2016-03-14 15:41:46 +0000
committerDavid Mitchell <davem@iabyn.com>2016-03-14 15:46:06 +0000
commit9b2c64f15d3926b938688f7990ff65d783115fe7 (patch)
tree2e809b62267c874fd341eda6edd47cb1add9954c /os2
parentc708944da37fda4c2faf03aeddc9c9e5983ec407 (diff)
downloadperl-9b2c64f15d3926b938688f7990ff65d783115fe7.tar.gz
s/ar rcu/ar rc/ during linking
The are a few places in Makefile.SH which do (approximately): rm $libfile ar rcu $libfile *.o The 'u' in 'rcu' seems redundant since the old lib file is always deleted just before being recreated; and more to the point, it generates warnings on recent Linux builds: /bin/ar: `u' modifier ignored since `D' is the default (see `U') This is because the 'u' modifier updates the archive, i.e. only replaces the objects which are newer in an existing archive. On my Linux system, ar by default operates in 'deterministic' mode, which means that it doesn't add timestamps etc (so that repeated builds will give identical binaries). In this mode 'u' can't work, hence the warning. So this commit just removes the 'u' flag.
Diffstat (limited to 'os2')
-rw-r--r--os2/Makefile.SHs2
1 files changed, 1 insertions, 1 deletions
diff --git a/os2/Makefile.SHs b/os2/Makefile.SHs
index 6ef04e57d8..33b51b0a3b 100644
--- a/os2/Makefile.SHs
+++ b/os2/Makefile.SHs
@@ -225,7 +225,7 @@ $(aout_static_ext) : $(static_ext) $(dynamic_ext)
$(AOUT_LIBPERL) : $(aout_obj) perl$(AOUT_OBJ_EXT)
rm -f $@
- $(AOUT_AR) rcu $@ perl$(AOUT_OBJ_EXT) $(aout_obj)
+ $(AOUT_AR) rc $@ perl$(AOUT_OBJ_EXT) $(aout_obj)
cp $@ perl$(AOUT_LIB_EXT)
.c$(AOUT_OBJ_EXT):