Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
d7dc9ca7
Commit
d7dc9ca7
authored
Jun 18, 2011
by
Pieter Noordhuis
Browse files
Fallback to gcc when $CC is not in $PATH
parent
d5a28db0
Changes
1
Show whitespace changes
Inline
Side-by-side
Makefile
View file @
d7dc9ca7
...
...
@@ -9,6 +9,9 @@ LIBNAME=libhiredis
HIREDIS_MAJOR
=
0
HIREDIS_MINOR
=
10
# Fallback to gcc when $CC is not in $PATH.
CC
:=
$(
shell
sh
-c
'type
$(CC)
2>/dev/null 1>/dev/null && echo
$(CC)
|| echo gcc'
)
uname_S
:=
$(
shell
sh
-c
'uname -s 2>/dev/null || echo not'
)
OPTIMIZATION
?=
-O3
ifeq
($(uname_S),SunOS)
...
...
@@ -48,7 +51,7 @@ else
DYLIB_MINOR_NAME
?=
$(LIBNAME)
.
$(DYLIBSUFFIX)
.
$(HIREDIS_MAJOR)
.
$(HIREDIS_MINOR)
DYLIB_MAJOR_NAME
?=
$(LIBNAME)
.
$(DYLIBSUFFIX)
.
$(HIREDIS_MAJOR)
DYLIBNAME
?=
$(LIBNAME)
.
$(DYLIBSUFFIX)
DYLIB_MAKE_CMD
?=
gcc
-shared
-Wl
,-soname,
$(DYLIB_MINOR_NAME)
-o
$(DYLIBNAME)
DYLIB_MAKE_CMD
?=
$(CC)
-shared
-Wl
,-soname,
$(DYLIB_MINOR_NAME)
-o
$(DYLIBNAME)
STLIBNAME
?=
$(LIBNAME)
.
$(STLIBSUFFIX)
STLIB_MAKE_CMD
?=
ar rcs
$(STLIBNAME)
INSTALL
=
cp
-a
...
...
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