Commit 1d9a0811 authored by willem's avatar willem
Browse files

Moved -fPIC to only library building

parent 2966358a
......@@ -2,6 +2,6 @@ language: c
before_install:
- sudo pip install cpp-coveralls --use-mirrors
script:
- make
- make tests
after_success:
- coveralls --verbose --no-gcov
......@@ -7,7 +7,7 @@ GCOV_CCFLAGS = -fprofile-arcs -ftest-coverage
SHELL = /bin/bash
CFLAGS += -Iinclude -Werror -Werror=return-type -Werror=uninitialized -Wcast-align \
-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)
......@@ -39,7 +39,7 @@ $(TEST_DIR)/main_test.c:
.PHONY: shared
shared: $(OBJECTS)
$(CC) $(OBJECTS) $(LDFLAGS) $(CFLAGS) $(SHAREDFLAGS) -o libcraft.$(SHAREDEXT)
$(CC) $(OBJECTS) $(LDFLAGS) $(CFLAGS) -fPIC $(SHAREDFLAGS) -o libcraft.$(SHAREDEXT)
.PHONY: static
static: $(OBJECTS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment