Revision 6b266e90789290ba5b574d8102e50b2da934f75f authored by Axel Naumann on 29 April 2016, 21:38:38 UTC, committed by Philippe Canal on 29 April 2016, 22:14:00 UTC
A class without user declared constructor still might not have a default consructor. E.g. a class with a user provided move ctor. Or with a base or member with deleted default ctor. Just let clang do the right thing.
1 parent 8ea5daa
Makefile.iossim
# -*- mode: makefile -*-
#
# Makefile of ROOT for MacOS X, using g++ 32-bit mode
PLATFORM = ios
DEBUGFLAGS = -g
OPTFLAGS = -O2 -DNDEBUG
ifeq (debug,$(findstring debug,$(ROOTBUILD)))
OPT = $(DEBUGFLAGS)
NOOPT =
else
OPT = $(OPTFLAGS)
NOOPT =
endif
# iOS version
IOS_MAJOR := $(shell echo $(IOSVERS) | cut -d . -f 1)
# Compiler:
ifeq ($(subst $(IOS_MAJOR),,1234),1234)
CXX := $(shell xcrun -find clang++)
CC := $(shell xcrun -find clang)
ifeq ($(CXX14),yes)
CXX11FLAGS = -std=c++1y
else
CXX11FLAGS = -std=c++11
endif
ifeq ($(LIBCXX),yes)
CXX11FLAGS += -stdlib=libc++
CXX11LDFLAGS = -stdlib=libc++
endif
else
CXX := $(shell xcrun -find g++)
CC := $(shell xcrun -find gcc)
endif
CXXFLAGS = $(CXX11FLAGS) -arch i386 -pipe -Wshadow -W -Wall \
-Woverloaded-virtual -fsigned-char -fno-common \
-fvisibility-inlines-hidden $(EXTRA_CXXFLAGS) \
-isysroot $(IOSSDK) $(CXX11FLAGS) $(USERCONF_CXXFLAGS)
CFLAGS = -arch i386 -pipe -Wshadow -W -Wall -fsigned-char -fno-common \
$(EXTRA_CFLAGS) -isysroot $(IOSSDK) $(USERCONF_CFLAGS)
COMPILER = gnu
# Linker:
ifeq ($(subst $(IOS_MAJOR),,1234),1234)
LD := $(shell xcrun -find clang++)
else
LD := $(shell xcrun -find g++)
endif
LDFLAGS = $(OPT) -arch i386 -isysroot $(IOSSDK) \
-miphoneos-version-min=$(IOSVERS) $(CXX11LDFLAGS)
# this is set for 64 but not for 32 bit (for iOS too???)
CXXFLAGS += -D__DARWIN_UNIX03=1
CFLAGS += -D__DARWIN_UNIX03=1
ifeq ($(USECONFIG),FALSE)
SOFLAGS = -dynamiclib -single_module \
-undefined dynamic_lookup -install_name @rpath/
else
SOFLAGS = -dynamiclib -single_module \
-undefined dynamic_lookup -install_name $(LIBDIR)/
endif
FORCELINK = no
SOEXT = so
# System libraries:
SYSLIBS = -lm $(EXTRA_LDFLAGS) $(OSTHREADLIBDIR) \
$(OSTHREADLIB) -ldl $(ALLOCLIBDIR) $(ALLOCLIB)
CILIBS = -lm $(EXTRA_LDFLAGS) -ldl
# Fortran:
F77 =
# Override default in Makefile.config
INSTALL := /bin/cp -pPR
INSTALLDATA := /bin/cp -pPR
# Extras
ifeq ($(CONFIGURE),yes)
showcxx:
@echo "$(CXX)"
showcc:
@echo "$(CC)"
showld:
@echo "$(LD)"
showf77:
@echo "$(F77)"
endif
Computing file changes ...