Skip to content
Snippets Groups Projects
Commit dfb86eba authored by Fons Rademakers's avatar Fons Rademakers
Browse files

From Axel:

revert for all platforms except win32 to the old ROOTBUILD behaviour. For
Win32 introduce a new winrtdebug flag that is turned on during
./configure --build=debug OR when ROOTBUILD contains "debug" during
./configure.


git-svn-id: http://root.cern.ch/svn/root/trunk@14229 27541ba8-7e3a-0410-8455-c3a389f83636
parent 9307d656
No related branches found
No related tags found
No related merge requests found
...@@ -3,13 +3,14 @@ ...@@ -3,13 +3,14 @@
# Makefile definitions included by the top Makefile # Makefile definitions included by the top Makefile
ARCH := @architecture@ ARCH := @architecture@
ROOTBUILD := @rootbuild@ @rootbuild@
USECONFIG := @useconfig@ USECONFIG := @useconfig@
MKLIBOPTIONS := @mkliboption@ MKLIBOPTIONS := @mkliboption@
EXTRA_CFLAGS := -Iinclude @cflags@ EXTRA_CFLAGS := -Iinclude @cflags@
EXTRA_CXXFLAGS := -Iinclude @cflags@ EXTRA_CXXFLAGS := -Iinclude @cflags@
EXTRA_LDFLAGS := @ldflags@ EXTRA_LDFLAGS := @ldflags@
WINRTDEBUG := @winrtdebug@
GLBPATCHFLAGS := @glbpatchcflags@ GLBPATCHFLAGS := @glbpatchcflags@
EXTRA_AUTHFLAGS:= @srpextracflags@ @krb5extracflags@ @glbextracflags@ @sslextracflags@ EXTRA_AUTHFLAGS:= @srpextracflags@ @krb5extracflags@ @glbextracflags@ @sslextracflags@
......
...@@ -19,7 +19,7 @@ endif ...@@ -19,7 +19,7 @@ endif
# these define the build compatibility # these define the build compatibility
ifeq (debug,$(findstring debug,$(ROOTBUILD))) ifeq (yes,$(WINRTDEBUG))
BLDCXXFLAGS = -MDd -GR BLDCXXFLAGS = -MDd -GR
BLDCFLAGS = -MDd BLDCFLAGS = -MDd
BLDF77FLAGS = -MDd BLDF77FLAGS = -MDd
...@@ -49,7 +49,7 @@ endif ...@@ -49,7 +49,7 @@ endif
endif endif
endif endif
ifeq (debug,$(findstring debug,$(ROOTBUILD))) ifeq (yes,$(WINRTDEBUG))
OPT = $(DEBUGFLAGS) OPT = $(DEBUGFLAGS)
LDOPT = -debug LDOPT = -debug
F77OPT = -debug -nopdbfile -MDd F77OPT = -debug -nopdbfile -MDd
......
...@@ -339,12 +339,11 @@ hiux) ...@@ -339,12 +339,11 @@ hiux)
win32) win32)
# Win32 # Win32
auxcflags="-MD" auxcflags="-MD"
ROOTBUILD="@rootbuild@" if test "x@winrtdebug@" = "xyes"; then
if [ "`echo $ROOTBUILD | sed 's,debug,,'`" != "$ROOTBUILD" ]; then
auxcflags="-MDd" auxcflags="-MDd"
fi fi
VC_MAJOR=`unset VS_UNICODE_OUTPUT; cl.exe 2>&1 | awk '{ if (NR==1) print $8 }' | cut -d'.' -f1` VC_MAJOR=`unset VS_UNICODE_OUTPUT; cl.exe 2>&1 | awk '{ if (NR==1) print $8 }' | cut -d'.' -f1`
if [ "$VC_MAJOR" != "" -a $VC_MAJOR -gt 13 ]; then if test "$VC_MAJOR" != "" -a $VC_MAJOR -gt 13; then
auxcflags="$auxcflags -EHs -GR" auxcflags="$auxcflags -EHs -GR"
else else
auxcflags="$auxcflags -GX -G5" auxcflags="$auxcflags -GX -G5"
......
...@@ -21,7 +21,6 @@ show_pkglist=no ...@@ -21,7 +21,6 @@ show_pkglist=no
noact="no" noact="no"
nohowto="no" nohowto="no"
logfile=config.log logfile=config.log
rootbuild=$ROOTBUILD
options=" \ options=" \
enable_afs \ enable_afs \
...@@ -69,6 +68,7 @@ options=" \ ...@@ -69,6 +68,7 @@ options=" \
enable_table \ enable_table \
enable_thread \ enable_thread \
enable_venus \ enable_venus \
enable_winrtdebug \
enable_xml \ enable_xml \
enable_xrootd \ enable_xrootd \
" "
...@@ -95,6 +95,7 @@ enable_shadowpw= ...@@ -95,6 +95,7 @@ enable_shadowpw=
enable_soversion=no enable_soversion=no
enable_table=no enable_table=no
enable_thread= # must be set explicitely via --enable-thread enable_thread= # must be set explicitely via --enable-thread
enable_winrtdebug=
enable_xrootd= # must be set explicitely via --enable-xrootd enable_xrootd= # must be set explicitely via --enable-xrootd
# Remove old log file # Remove old log file
...@@ -836,6 +837,7 @@ enable/disable options, prefix with either --enable- or --disable- ...@@ -836,6 +837,7 @@ enable/disable options, prefix with either --enable- or --disable-
table Build libTable contrib library table Build libTable contrib library
thread Thread support thread Thread support
venus Venus EG support, requires libVenus venus Venus EG support, requires libVenus
winrtdebug Link against the Windows debug runtime library
xml XML parser interface xml XML parser interface
xrootd Build xrootd file server and its client (if supported) xrootd Build xrootd file server and its client (if supported)
...@@ -1093,7 +1095,7 @@ if test $# -gt 0 ; then ...@@ -1093,7 +1095,7 @@ if test $# -gt 0 ; then
# #
# Build steering option # Build steering option
# #
--build=*) rootbuild=$optarg ;; --build=*) rootbuild="ROOTBUILD := $optarg" ;;
################################################################ ################################################################
# #
# Install path options # Install path options
...@@ -1219,6 +1221,19 @@ if test "x$e" = "x1" ; then ...@@ -1219,6 +1221,19 @@ if test "x$e" = "x1" ; then
enable_exceptions=no enable_exceptions=no
fi fi
######################################################################
#
### echo %%% Windows Debug Runtime (-MDd)
#
if test "x$enable_winrtdebug" = "x" ; then
e=`echo $rootbuild | sed 's/.*debug.*/1/'`
if test "x$e" = "x1"; then
enable_winrtdebug=yes
else
enable_winrtdebug=no
fi
fi
###################################################################### ######################################################################
# #
### echo %%% Posix Thread Library ### echo %%% Posix Thread Library
...@@ -3673,6 +3688,7 @@ sed -e "s|@srcdir@|$srcdir|" \ ...@@ -3673,6 +3688,7 @@ sed -e "s|@srcdir@|$srcdir|" \
-e "s|@tutdir@|$tutdir|" \ -e "s|@tutdir@|$tutdir|" \
-e "s|@venuslib@|$venuslib|" \ -e "s|@venuslib@|$venuslib|" \
-e "s|@venuslibdir@|$venuslibdir|" \ -e "s|@venuslibdir@|$venuslibdir|" \
-e "s|@winrtdebug@|$enable_winrtdebug|" \
-e "s|@xmlincdir@|$xmlincdir|" \ -e "s|@xmlincdir@|$xmlincdir|" \
-e "s|@xmllib@|$xmllib|" \ -e "s|@xmllib@|$xmllib|" \
-e "s|@xmllibdir@|$xmllibdir|" \ -e "s|@xmllibdir@|$xmllibdir|" \
...@@ -3765,7 +3781,6 @@ for f in $options ; do ...@@ -3765,7 +3781,6 @@ for f in $options ; do
features="$features $feat" features="$features $feat"
fi fi
done done
sed -e "s|@architecture@|$arch|" \ sed -e "s|@architecture@|$arch|" \
-e "s|@platform@|$platform|" \ -e "s|@platform@|$platform|" \
-e "s|@prefix@|$prefix2|" \ -e "s|@prefix@|$prefix2|" \
...@@ -3773,7 +3788,7 @@ sed -e "s|@architecture@|$arch|" \ ...@@ -3773,7 +3788,7 @@ sed -e "s|@architecture@|$arch|" \
-e "s|@libdir@|$libdir2|" \ -e "s|@libdir@|$libdir2|" \
-e "s|@incdir@|$incdir2|" \ -e "s|@incdir@|$incdir2|" \
-e "s|@features@|$features|" \ -e "s|@features@|$features|" \
-e "s|@rootbuild@|$rootbuild|" \ -e "s|@winrtdebug@|$enable_winrtdebug|"\
-e "s|@configargs@|$configargs|" \ -e "s|@configargs@|$configargs|" \
-e "s|@dicttype@|$dicttype|" \ -e "s|@dicttype@|$dicttype|" \
< root-config.tmp > $RCONFOUT < root-config.tmp > $RCONFOUT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment