Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f5ec8100
Commit
f5ec8100
authored
Dec 28, 2008
by
Joerg Bruehe
Browse files
Options
Browse Files
Download
Plain Diff
Merge the bashism removal from 5.0 up to 5.1-build
parents
3ceb849f
a94bfcf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
19 deletions
+22
-19
BUILD/compile-dist
BUILD/compile-dist
+22
-19
No files found.
BUILD/compile-dist
View file @
f5ec8100
...
...
@@ -11,16 +11,33 @@ test -f Makefile && make maintainer-clean
path
=
`
dirname
$0
`
.
$path
/autorun.sh
gmake
=
for
x
in
gmake gnumake make
;
do
if
$x
--version
2>/dev/null |
grep
GNU
>
/dev/null
;
then
gmake
=
$x
break
;
fi
done
if
[
-z
"
$gmake
"
]
;
then
# Our build may not depend on GNU make, but I wouldn't count on it
echo
"Please install GNU make, and ensure it is in your path as gnumake, gmake, or make"
>
&2
exit
2
fi
# Default to gcc for CC and CXX
if
test
-z
"
$CXX
"
;
then
export
CXX
CXX
=
gcc
# Set some required compile options
if
test
-z
"
$CXXFLAGS
"
;
then
export
CXXFLAGS
CXXFLAGS
=
"-felide-constructors -fno-exceptions -fno-rtti"
fi
fi
if
test
-z
"
$CC
"
;
then
export
CC
CC
=
gcc
fi
...
...
@@ -28,36 +45,22 @@ fi
# Use ccache, if available
if
ccache
-V
>
/dev/null 2>&1
then
if
echo
"
$CC
"
|
grep
"ccache"
>
/dev/null
if
echo
"
$CC
"
|
grep
-v
ccache
>
/dev/null
then
:
else
export
CC
CC
=
"ccache
$CC
"
fi
if
echo
"
$CXX
"
|
grep
"ccache"
>
/dev/null
if
echo
"
$CXX
"
|
grep
-v
ccache
>
/dev/null
then
:
else
export
CXX
CXX
=
"ccache
$CXX
"
fi
fi
if
test
-z
"
$MAKE
"
then
if
gmake
-v
>
/dev/null 2>&1
then
MAKE
=
"gmake"
else
MAKE
=
"make"
fi
fi
export
CC CXX MAKE
# Make sure to enable all features that affect "make dist"
# Remember that configure restricts the man pages to the configured features !
./configure
\
--with-embedded-server
\
--with-ndbcluster
$
MAKE
$
gmake
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