Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
RedisLabs Raft
Commits
1d9a0811
Commit
1d9a0811
authored
Feb 27, 2014
by
willem
Browse files
Moved -fPIC to only library building
parent
2966358a
Changes
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
1d9a0811
...
@@ -2,6 +2,6 @@ language: c
...
@@ -2,6 +2,6 @@ language: c
before_install
:
before_install
:
-
sudo pip install cpp-coveralls --use-mirrors
-
sudo pip install cpp-coveralls --use-mirrors
script
:
script
:
-
make
-
make
tests
after_success
:
after_success
:
-
coveralls --verbose --no-gcov
-
coveralls --verbose --no-gcov
Makefile
View file @
1d9a0811
...
@@ -7,7 +7,7 @@ GCOV_CCFLAGS = -fprofile-arcs -ftest-coverage
...
@@ -7,7 +7,7 @@ GCOV_CCFLAGS = -fprofile-arcs -ftest-coverage
SHELL
=
/bin/bash
SHELL
=
/bin/bash
CFLAGS
+=
-Iinclude
-Werror
-Werror
=
return
-type
-Werror
=
uninitialized
-Wcast-align
\
CFLAGS
+=
-Iinclude
-Werror
-Werror
=
return
-type
-Werror
=
uninitialized
-Wcast-align
\
-Wno-pointer-sign
-fno-omit-frame-pointer
-fno-common
-fsigned-char
\
-Wno-pointer-sign
-fno-omit-frame-pointer
-fno-common
-fsigned-char
\
$(GCOV_CCFLAGS)
-I
$(LLQUEUE_DIR)
-Iinclude
-fPIC
-g
-O2
$(GCOV_CCFLAGS)
-I
$(LLQUEUE_DIR)
-Iinclude
-g
-O2
UNAME
:=
$(
shell
uname
)
UNAME
:=
$(
shell
uname
)
...
@@ -39,7 +39,7 @@ $(TEST_DIR)/main_test.c:
...
@@ -39,7 +39,7 @@ $(TEST_DIR)/main_test.c:
.PHONY
:
shared
.PHONY
:
shared
shared
:
$(OBJECTS)
shared
:
$(OBJECTS)
$(CC)
$(OBJECTS)
$(LDFLAGS)
$(CFLAGS)
$(SHAREDFLAGS)
-o
libcraft.
$(SHAREDEXT)
$(CC)
$(OBJECTS)
$(LDFLAGS)
$(CFLAGS)
-fPIC
$(SHAREDFLAGS)
-o
libcraft.
$(SHAREDEXT)
.PHONY
:
static
.PHONY
:
static
static
:
$(OBJECTS)
static
:
$(OBJECTS)
...
...
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