Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
CMake
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3,193
Issues
3,193
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CMake
CMake
Commits
3b8eff55
Commit
3b8eff55
authored
Nov 07, 2001
by
Bill Hoffman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove template flags from cmake, no ptused, or -instance=static
parent
b522b84f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
92 deletions
+10
-92
Source/cmUnixMakefileGenerator.cxx
Source/cmUnixMakefileGenerator.cxx
+1
-1
Templates/configure
Templates/configure
+5
-22
Templates/configure.in
Templates/configure.in
+0
-16
configure
configure
+4
-29
configure.in
configure.in
+0
-24
No files found.
Source/cmUnixMakefileGenerator.cxx
View file @
3b8eff55
...
...
@@ -1112,7 +1112,7 @@ void cmUnixMakefileGenerator::OutputMakeVariables(std::ostream& fout)
"CMAKE_SHLIB_CFLAGS = @CMAKE_SHLIB_CFLAGS@
\n
"
"
\n
"
"CMAKE_CXX_COMPILER = @CMAKE_CXX_COMPILER@
\n
"
"CMAKE_CXXFLAGS = @CMAKE_CXX_FLAGS@
@CMAKE_TEMPLATE_FLAGS@
\n
"
"CMAKE_CXXFLAGS = @CMAKE_CXX_FLAGS@
\n
"
"
\n
"
"CMAKE_SHLIB_BUILD_FLAGS = @CMAKE_SHLIB_BUILD_FLAGS@
\n
"
"CMAKE_SHLIB_LINK_FLAGS = @CMAKE_SHLIB_LINK_FLAGS@
\n
"
...
...
Templates/configure
View file @
3b8eff55
...
...
@@ -3005,28 +3005,12 @@ fi
# if we are not running g++ then we might need some other flags
# to get the templates compiled correctly
CMAKE_TEMPLATE_FLAGS
=
""
if
test
$ac_cv_prog_gxx
=
no
;
then
echo
$ac_n
"checking whether
${
CXX
}
accepts -ptused -no_prelink""...
$ac_c
"
1>&6
echo
'void f(){}'
>
conftest.cc
if
test
-z
"
`
${
CXX
}
-ptused
-no_prelink
-c
conftest.cc 2>&1
`
"
;
then
echo
"
$ac_t
""yes"
1>&6
CMAKE_TEMPLATE_FLAGS
=
"-ptused -no_prelink"
else
echo
"
$ac_t
""no"
1>&6
fi
rm
-f
conftest
*
fi
# check no g++ compilers to see if they have the standard
# ansi stream files (without the .h)
if
test
$ac_cv_prog_gxx
=
no
;
then
echo
$ac_n
"checking ansi standard C++ stream headers ""...
$ac_c
"
1>&6
echo
"configure:30
30
: checking ansi standard C++ stream headers "
>
&5
echo
"configure:30
14
: checking ansi standard C++ stream headers "
>
&5
rm
-rf
conftest.
*
cat
>
conftest.cc <<
!
#include <iostream>
...
...
@@ -3043,7 +3027,7 @@ fi
# check to see if stl is in the std namespace
if
test
$ac_cv_prog_gxx
=
no
;
then
echo
$ac_n
"checking ansi standard namespace support ""...
$ac_c
"
1>&6
echo
"configure:30
47
: checking ansi standard namespace support "
>
&5
echo
"configure:30
31
: checking ansi standard namespace support "
>
&5
rm
-rf
conftest.
*
cat
>
conftest.cc <<
!
#include <list>
...
...
@@ -3061,7 +3045,7 @@ fi
# check to see if for scoping is supported
if
test
$ac_cv_prog_gxx
=
no
;
then
echo
$ac_n
"checking ansi for scope support ""...
$ac_c
"
1>&6
echo
"configure:30
65
: checking ansi for scope support "
>
&5
echo
"configure:30
49
: checking ansi for scope support "
>
&5
rm
-rf
conftest.
*
cat
>
conftest.cc <<
!
void foo
()
{
for
(
int i
;;
)
;
for
(
int i
;;
)
;
}
...
...
@@ -3086,7 +3070,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set
dummy
$ac_prog
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:30
90
: checking for
$ac_word
"
>
&5
echo
"configure:30
74
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_RUNMAKE
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -3126,7 +3110,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set
dummy
$ac_prog
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:31
30
: checking for
$ac_word
"
>
&5
echo
"configure:31
14
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_CMAKE_AR_TMP
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -3367,7 +3351,6 @@ s%@CMAKE_HP_PTHREADS@%$CMAKE_HP_PTHREADS%g
s%@CMAKE_THREAD_LIBS@%
$CMAKE_THREAD_LIBS
%g
s%@CMAKE_ANSI_CFLAGS@%
$CMAKE_ANSI_CFLAGS
%g
s%@CMAKE_ANSI_CXXFLAGS@%
$CMAKE_ANSI_CXXFLAGS
%g
s%@CMAKE_TEMPLATE_FLAGS@%
$CMAKE_TEMPLATE_FLAGS
%g
s%@CMAKE_NO_ANSI_STREAM_HEADERS@%
$CMAKE_NO_ANSI_STREAM_HEADERS
%g
s%@CMAKE_NO_STD_NAMESPACE@%
$CMAKE_NO_STD_NAMESPACE
%g
s%@CMAKE_NO_ANSI_FOR_SCOPE@%
$CMAKE_NO_ANSI_FOR_SCOPE
%g
...
...
Templates/configure.in
View file @
3b8eff55
...
...
@@ -582,22 +582,6 @@ fi
AC_SUBST(CMAKE_ANSI_CFLAGS)
AC_SUBST(CMAKE_ANSI_CXXFLAGS)
# if we are not running g++ then we might need some other flags
# to get the templates compiled correctly
CMAKE_TEMPLATE_FLAGS=""
if test $ac_cv_prog_gxx = no; then
echo $ac_n "checking whether ${CXX} accepts -ptused -no_prelink""... $ac_c" 1>&6
echo 'void f(){}' > conftest.cc
if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
echo "$ac_t""yes" 1>&6
CMAKE_TEMPLATE_FLAGS="-ptused -no_prelink"
else
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
fi
AC_SUBST(CMAKE_TEMPLATE_FLAGS)
# check no g++ compilers to see if they have the standard
# ansi stream files (without the .h)
...
...
configure
View file @
3b8eff55
...
...
@@ -957,35 +957,11 @@ fi
# if we are not running g++ then we might need some other flags
# to get the templates compiled correctly
CMAKE_TEMPLATE_FLAGS=""
if test $ac_cv_prog_gxx = no; then
echo $ac_n "checking whether ${CXX} accepts -ptused -no_prelink""... $ac_c" 1>&6
echo '
void f
(){}
' > conftest.cc
if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
echo "$ac_t""yes" 1>&6
CMAKE_TEMPLATE_FLAGS="-ptused -no_prelink"
else
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
echo $ac_n "checking whether ${CXX} accepts -instances=semiexplicit""... $ac_c" 1>&6
echo '
void f
(){}
' > conftest.cc
if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
echo "$ac_t""yes" 1>&6
CMAKE_TEMPLATE_FLAGS="-instances=static"
else
echo "$ac_t""no" 1>&6
fi
fi
# check no g++ compilers to see if they have the standard
# ansi stream files (without the .h)
if test $ac_cv_prog_gxx = no; then
echo $ac_n "checking ansi standard C++ stream headers ""... $ac_c" 1>&6
echo "configure:9
89
: checking ansi standard C++ stream headers " >&5
echo "configure:9
65
: checking ansi standard C++ stream headers " >&5
rm -rf conftest.*
cat > conftest.cc <<!
#include <iostream>
...
...
@@ -1004,7 +980,7 @@ fi
# check to see if stl is in the std namespace
if test $ac_cv_prog_gxx = no; then
echo $ac_n "checking ansi standard namespace support ""... $ac_c" 1>&6
echo "configure:
1008
: checking ansi standard namespace support " >&5
echo "configure:
984
: checking ansi standard namespace support " >&5
rm -rf conftest.*
cat > conftest.cc <<!
#include <list>
...
...
@@ -1024,7 +1000,7 @@ fi
# check to see if for scoping is supported
if test $ac_cv_prog_gxx = no; then
echo $ac_n "checking ansi for scope support ""... $ac_c" 1>&6
echo "configure:10
28
: checking ansi for scope support " >&5
echo "configure:10
04
: checking ansi for scope support " >&5
rm -rf conftest.*
cat > conftest.cc <<!
void foo() { for(int i;;); for(int i;;); }
...
...
@@ -1046,7 +1022,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:10
50
: checking for $ac_word" >&5
echo "configure:10
26
: checking for $ac_word" >&5
if eval "test \"`echo '$''
{
'ac_cv_path_RUNMAKE'
+set
}
'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
...
...
@@ -1220,7 +1196,6 @@ s%@CXX@%$CXX%g
s%@CMAKE_ROOT_DIR@%
$CMAKE_ROOT_DIR
%g
s%@CMAKE_ANSI_CFLAGS@%
$CMAKE_ANSI_CFLAGS
%g
s%@CMAKE_ANSI_CXXFLAGS@%
$CMAKE_ANSI_CXXFLAGS
%g
s%@CMAKE_TEMPLATE_FLAGS@%
$CMAKE_TEMPLATE_FLAGS
%g
s%@RUNMAKE@%
$RUNMAKE
%g
CEOF
...
...
configure.in
View file @
3b8eff55
...
...
@@ -72,30 +72,6 @@ fi
AC_SUBST(CMAKE_ANSI_CFLAGS)
AC_SUBST(CMAKE_ANSI_CXXFLAGS)
# if we are not running g++ then we might need some other flags
# to get the templates compiled correctly
CMAKE_TEMPLATE_FLAGS=""
if test $ac_cv_prog_gxx = no; then
echo $ac_n "checking whether ${CXX} accepts -ptused -no_prelink""... $ac_c" 1>&6
echo 'void f(){}' > conftest.cc
if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
echo "$ac_t""yes" 1>&6
CMAKE_TEMPLATE_FLAGS="-ptused -no_prelink"
else
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
echo $ac_n "checking whether ${CXX} accepts -instances=semiexplicit""... $ac_c" 1>&6
echo 'void f(){}' > conftest.cc
if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
echo "$ac_t""yes" 1>&6
CMAKE_TEMPLATE_FLAGS="-instances=static"
else
echo "$ac_t""no" 1>&6
fi
fi
AC_SUBST(CMAKE_TEMPLATE_FLAGS)
# check no g++ compilers to see if they have the standard
# ansi stream files (without the .h)
if test $ac_cv_prog_gxx = no; then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment