summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-12-25 23:29:00 +0200
committerToomas Soome <tsoome@me.com>2020-01-10 09:23:18 +0200
commit50d967713af8725306d090dd29033d9efe924715 (patch)
treedd7c08834a11e50fc48db6c8dbeb0c39a77edd62 /usr/src
parentd59679dc4ee5ea26c61e7762a3f7a6f74a1f4c2c (diff)
downloadillumos-joyent-50d967713af8725306d090dd29033d9efe924715.tar.gz
12139 make: definition of implicit copy constructor is deprecated
Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: C Fraire <cfraire@me.com> Approved by: Robert Mustacchi <rm@fingolfin.org>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/make/Makefile.com1
-rw-r--r--usr/src/cmd/make/include/mksh/defs.h1
-rw-r--r--usr/src/tools/make/Makefile.com2
3 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/cmd/make/Makefile.com b/usr/src/cmd/make/Makefile.com
index dcc587439e..fc76730f2a 100644
--- a/usr/src/cmd/make/Makefile.com
+++ b/usr/src/cmd/make/Makefile.com
@@ -14,6 +14,7 @@
MAKE_INCLUDE= $(SRC)/cmd/make/include
CFLAGS += $(CCVERBOSE)
CPPFLAGS += -I$(MAKE_INCLUDE) $(MAKE_DEFS)
+CCFLAGS += -_gcc4=-std=gnu++0x
# So that it's set even for the libraries we build
TEXT_DOMAIN = SUNW_OST_OSCMD
diff --git a/usr/src/cmd/make/include/mksh/defs.h b/usr/src/cmd/make/include/mksh/defs.h
index 9ad58c4e61..0cf3d837c8 100644
--- a/usr/src/cmd/make/include/mksh/defs.h
+++ b/usr/src/cmd/make/include/mksh/defs.h
@@ -804,6 +804,7 @@ public:
// constructors
iterator() : node(0) {}
iterator(entry *node_) : node(node_) {}
+ iterator(const iterator&) = default;
// dereference operator
Name operator->() const { return node->name; }
diff --git a/usr/src/tools/make/Makefile.com b/usr/src/tools/make/Makefile.com
index 97c32780bf..34074bb00a 100644
--- a/usr/src/tools/make/Makefile.com
+++ b/usr/src/tools/make/Makefile.com
@@ -17,5 +17,5 @@ CC = $(NATIVECC)
CCC = $(NATIVECCC)
CFLAGS = $(NATIVE_CFLAGS)
CFLAGS += $(CCVERBOSE)
-CCFLAGS = $(NATIVE_CCFLAGS)
+CCFLAGS = $(NATIVE_CCFLAGS) -_gcc4=-std=gnu++0x
CPPFLAGS = -I$(MAKE_INCLUDE) $(MAKE_DEFS)